|
@@ -1,6 +1,7 @@
|
|
|
package com.sxtvs.open.api.clue.controller;
|
|
|
|
|
|
import com.sxtvs.open.api.clue.entity.WxMessage;
|
|
|
+import com.sxtvs.open.api.clue.service.impl.ClueServiceImpl;
|
|
|
import com.sxtvs.open.core.advice.NoAPIResponse;
|
|
|
import com.sxtvs.open.core.sls.AliyunLogger;
|
|
|
import jakarta.annotation.Resource;
|
|
@@ -18,6 +19,9 @@ public class WxClueController {
|
|
|
@Resource
|
|
|
private AliyunLogger logger;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private ClueServiceImpl clueService;
|
|
|
+
|
|
|
@GetMapping(value = "wx_create")
|
|
|
public void wxCreate(@RequestParam("echostr") String echostr,
|
|
|
@RequestParam("timestamp") String timestamp,
|
|
@@ -33,7 +37,8 @@ public class WxClueController {
|
|
|
public void wxCreate(@RequestBody WxMessage wxMessage,
|
|
|
HttpServletResponse response) throws IOException {
|
|
|
|
|
|
- logger.info("wx xml", wxMessage);
|
|
|
+ logger.info("wx xml", wxMessage, "key", "wxXml");
|
|
|
+ clueService.wxCreate(wxMessage);
|
|
|
response.getWriter().write("OK");
|
|
|
|
|
|
}
|