From e5af0bf524c56b85d1d7370e918857b748421dad Mon Sep 17 00:00:00 2001
From: yao-zengchun <yao-zengchun@smhc.co.jp>
Date: Fri, 31 Oct 2025 03:50:35 +0000
Subject: [PATCH] Merge branch 'wcd' of http://192.168.1.110:5678/r/pms-upgrade into wcd
---
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/temp/Temp.java | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/temp/Temp.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/temp/Temp.java
index 1603193..3b0575e 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/temp/Temp.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/temp/Temp.java
@@ -10,6 +10,7 @@
import me.zhengjie.modules.project.domain.Project;
import me.zhengjie.modules.project.repository.ProjectRepository;
import me.zhengjie.modules.project.service.dto.ProjectQueryCriteria;
+import me.zhengjie.modules.temp.service.WechatRobotService;
import me.zhengjie.modules.temp.service.WechatSendHistoryService;
import me.zhengjie.utils.QueryHelp;
import org.springframework.http.HttpStatus;
@@ -30,6 +31,7 @@
private final ProjectRepository projectRepository;
private final WechatSendHistoryService wechatSendHistoryService;
+ private final WechatRobotService wechatRobotService;
@AnonymousPutMapping(value = "/updateProjectLiableUserId")
@Log("修改项目责任人ID")
@@ -65,4 +67,20 @@
wechatSendHistoryService.handleApprovalCallback(msgSignature, timestamp, nonce, request, response);
return new ResponseEntity<>(HttpStatus.OK);
}
+
+ @AnonymousGetMapping(value = "/wechat/robot/backUrl")
+ @Log("企业微信智能机器人验证回调URL")
+ @ApiOperation("企业微信智能机器人验证回调URL")
+ public void robotBack(@RequestParam(value = "msg_signature") String msgSignature, @RequestParam(value = "timestamp") String timestamp,
+ @RequestParam(value = "nonce") String nonce, @RequestParam(value = "echostr") String echostr, HttpServletResponse response){
+ wechatRobotService.robotBack(msgSignature, timestamp, nonce, echostr, response);
+ }
+
+ @AnonymousPostMapping(value = "/wechat/robot/backUrl")
+ @Log("处理企业微信智能机器人回调事件")
+ @ApiOperation("处理企业微信智能机器人回调事件")
+ public ResponseEntity<Object> handleRobotCallback(@RequestParam(value = "msg_signature") String msgSignature, @RequestParam(value = "timestamp") String timestamp,
+ @RequestParam(value = "nonce") String nonce, HttpServletRequest request, HttpServletResponse response){
+ return new ResponseEntity<>(wechatRobotService.handleRobotCallback(msgSignature, timestamp, nonce, request, response), HttpStatus.OK);
+ }
}
--
Gitblit v1.9.3