打卡通知

This commit is contained in:
huangdeliang
2021-08-12 09:39:56 +08:00
parent f66d22c4e0
commit 95d5f0f57c
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\":\"成功\"}"));