修复未登录过小程序导致的问题
This commit is contained in:
parent
6ac09ed80a
commit
c1197025b3
@ -574,12 +574,6 @@ public class WechatAppletController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/subscribe/post")
|
|
||||||
public AjaxResult subscribePost(@RequestParam Long cusId, @RequestParam Long planId, @RequestParam String name, @RequestParam String startDate, @RequestParam String endDate, @RequestParam String remark) {
|
|
||||||
return AjaxResult.success(iWechatAppletService.postSubscribeMessage(cusId, planId, name, startDate, endDate, remark));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ public class WeChartAppletServiceImp implements IWechatAppletService {
|
|||||||
public Integer postSubscribeMessage(Long cusId, Long planId, String name, String startDate, String endDate, String remark) {
|
public Integer postSubscribeMessage(Long cusId, Long planId, String name, String startDate, String endDate, String remark) {
|
||||||
SysWxUserInfo sysWxUserInfo = sysWxUserInfoService.selectSysWxUserInfoByCusId(cusId);
|
SysWxUserInfo sysWxUserInfo = sysWxUserInfoService.selectSysWxUserInfoByCusId(cusId);
|
||||||
if (StringUtils.isNull(sysWxUserInfo)) {
|
if (StringUtils.isNull(sysWxUserInfo)) {
|
||||||
return null;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
String accessToken = getAccessToken(sysWxUserInfo.getAppid());
|
String accessToken = getAccessToken(sysWxUserInfo.getAppid());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user