feat:callback

This commit is contained in:
苏竹红
2025-10-30 10:50:01 +08:00
parent ab105dda76
commit 11178ae0e3

View File

@@ -200,12 +200,9 @@ public class OpenApiController {
@RequestParam(value = "echostr", required = false) String echostr, @RequestParam(value = "echostr", required = false) String echostr,
@RequestBody(required = false) String requestBody) { @RequestBody(required = false) String requestBody) {
System.out.println("收到微信消息:"); log.info("url:{}","/open/v1/");
System.out.println("signature: " + signature); log.info("callback_signature:{},timestamp:{},nonce:{}",signature,timestamp,nonce);
System.out.println("timestamp: " + timestamp); log.info("requestBody:{}",JSONObject.toJSONString(requestBody));
System.out.println("nonce: " + nonce);
System.out.println("echostr: " + echostr);
System.out.println("requestBody: " + requestBody);
if (StringUtils.isNotEmpty(requestBody)) { if (StringUtils.isNotEmpty(requestBody)) {
try { try {