Commit 82dcf7cd by weiss

1

1 parent 272fc736
...@@ -343,7 +343,7 @@ public class FeiShuEventController { ...@@ -343,7 +343,7 @@ public class FeiShuEventController {
for (Pain pain : pains) { for (Pain pain : pains) {
String messageId = pain.getMessageId(); String messageId = pain.getMessageId();
massageService.updateSingleMassageMsgCardWhenBegin(messageId); massageService.updateSingleMassageMsgCardWhenBegin(messageId);
userString.append(String.format("<at user_id=\\\"%s\\\">%s</at>", pain.getOpenId(), pain.getName())); userString.append(String.format("<at user_id=\"%s\">%s</at>", pain.getOpenId(), pain.getName()));
//1代表正在按 //1代表正在按
pain.setStatus(1); pain.setStatus(1);
...@@ -377,6 +377,7 @@ public class FeiShuEventController { ...@@ -377,6 +377,7 @@ public class FeiShuEventController {
receiveId = (String) CacheUtil.get("chatId"); receiveId = (String) CacheUtil.get("chatId");
} }
feiShuMsgDTO.setReceiveId(receiveId); feiShuMsgDTO.setReceiveId(receiveId);
log.info("已机器人身份发送消息:{}", feiShuMsgDTO.toString());
feiShuApiService.sendMsg(feiShuMsgDTO, receiveIdType); feiShuApiService.sendMsg(feiShuMsgDTO, receiveIdType);
return ResultGenerator.genSuccessResult(); return ResultGenerator.genSuccessResult();
} }
......
...@@ -70,11 +70,11 @@ public class MassageNoticeScheduleService { ...@@ -70,11 +70,11 @@ public class MassageNoticeScheduleService {
floorCountMap.put(14, 30); floorCountMap.put(14, 30);
} }
/** // /**
* 每周四定时生成要按摩的人员名单,并发送大群和单人消息 // * 每周四定时生成要按摩的人员名单,并发送大群和单人消息
*/ // */
@Async // @Async
@Scheduled(cron = "0 0 10 * * ?") // @Scheduled(cron = "0 0 10 * * ?")
public void sendMsgCardToPipiChat() { public void sendMsgCardToPipiChat() {
employeeService.uprsetAllEmployee(); employeeService.uprsetAllEmployee();
chatMessageService.deleteAll(); chatMessageService.deleteAll();
...@@ -170,7 +170,7 @@ public class MassageNoticeScheduleService { ...@@ -170,7 +170,7 @@ public class MassageNoticeScheduleService {
for (Pain pain : pains) { for (Pain pain : pains) {
String messageId = pain.getMessageId(); String messageId = pain.getMessageId();
massageService.updateSingleMassageMsgCardWhenBegin(messageId); massageService.updateSingleMassageMsgCardWhenBegin(messageId);
userString.append(String.format("<at user_id=\\\"%s\\\">%s</at>", pain.getOpenId(), pain.getName())); userString.append(String.format("<at user_id=\"%s\">%s</at>", pain.getOpenId(), pain.getName()));
//1代表正在按 //1代表正在按
pain.setStatus(1); pain.setStatus(1);
painService.update(pain); painService.update(pain);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!