修复未登录过小程序导致的问题

This commit is contained in:
huangdeliang
2021-05-18 14:28:33 +08:00
parent 6ac09ed80a
commit c1197025b3
2 changed files with 1 additions and 7 deletions

View File

@ -76,7 +76,7 @@ public class WeChartAppletServiceImp implements IWechatAppletService {
public Integer postSubscribeMessage(Long cusId, Long planId, String name, String startDate, String endDate, String remark) {
SysWxUserInfo sysWxUserInfo = sysWxUserInfoService.selectSysWxUserInfoByCusId(cusId);
if (StringUtils.isNull(sysWxUserInfo)) {
return null;
return -1;
}
String accessToken = getAccessToken(sysWxUserInfo.getAppid());