!346 打卡通知

Merge pull request !346 from 德仔/develop
This commit is contained in:
德仔
2021-08-12 01:41:16 +00:00
committed by Gitee
2 changed files with 5 additions and 5 deletions

View File

@ -459,11 +459,11 @@ public class WechatAppletController extends BaseController {
}
// 更新时间超过21天重新登录获取最新信息
if (
// if (
// StringUtils.isEmpty(curWxUserInfo.getAvatarUrl()) ||
ChronoUnit.DAYS.between(DateUtils.dateToLocalDate(curWxUserInfo.getUpdateTime()), LocalDate.now()) >= 21) {
return AjaxResult.error(5001, "信息缺失或者过期需要重新登录");
}
// ChronoUnit.DAYS.between(DateUtils.dateToLocalDate(curWxUserInfo.getUpdateTime()), LocalDate.now()) >= 21) {
// return AjaxResult.error(5001, "信息缺失或者过期需要重新登录");
// }
SysCustomerHealthy customerHealthy = sysCustomerHealthyService.selectSysCustomerHealthyByCustomerId(curWxUserInfo.getCusId());
if (customerHealthy == null) {

View File

@ -177,7 +177,7 @@ public class WeChartAppletServiceImp implements IWechatAppletService {
// param.put("miniprogram", miniData);
JSONObject dataParam = new JSONObject();
dataParam.put("first", JSONObject.parse("{\"value\":\"完成打卡\"}"));
dataParam.put("first", JSONObject.parse("{\"value\":\"客户完成打卡通知\"}"));
dataParam.put("keyword1", JSONObject.parse("{\"value\":\"" + name + "\"}"));
dataParam.put("keyword2", JSONObject.parse("{\"value\":\"" + DateUtils.getTime() + "\"}"));
dataParam.put("keyword3", JSONObject.parse("{\"value\":\"成功\"}"));