|
@@ -1,5 +1,6 @@
|
|
|
package com.xjrsoft.module.job;
|
|
|
|
|
|
+import cn.hutool.core.util.IdUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.extra.spring.SpringUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
@@ -206,7 +207,7 @@ public class AttendanceMessageTask {
|
|
|
weChatSendMessageDto.setUrl(StrUtil.format("{}pages/attendance/teacher/index", commonPropertiesConfig.getDomainApp()));
|
|
|
|
|
|
for (XjrUser xjrUser : userList) {
|
|
|
- weChatSendMessageDto.setMsgId(xjrUser.getId().toString());
|
|
|
+ weChatSendMessageDto.setMsgId(IdUtil.getSnowflakeNextId() + "");
|
|
|
weChatSendMessageDto.setUserId(xjrUser.getOpenId());
|
|
|
weChatService.sendTemplateMessage(weChatSendMessageDto);
|
|
|
}
|
|
@@ -251,7 +252,7 @@ public class AttendanceMessageTask {
|
|
|
weChatSendMessageDto.setUrl(StrUtil.format("{}pages/attendance/class/index", commonPropertiesConfig.getDomainApp()));
|
|
|
|
|
|
for (XjrUser xjrUser : userList) {
|
|
|
- weChatSendMessageDto.setMsgId(xjrUser.getId().toString());
|
|
|
+ weChatSendMessageDto.setMsgId(IdUtil.getSnowflakeNextId() + "");
|
|
|
weChatSendMessageDto.setUserId(xjrUser.getOpenId());
|
|
|
weChatService.sendTemplateMessage(weChatSendMessageDto);
|
|
|
}
|