diff --git a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/open/MpOpenController.java b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/open/MpOpenController.java index a6284ab6d..709d2b89d 100644 --- a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/open/MpOpenController.java +++ b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/open/MpOpenController.java @@ -22,7 +22,12 @@ public class MpOpenController { @Resource private MpServiceFactory mpServiceFactory; - @ApiOperation("校验签名") // 参见 https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Access_Overview.html 文档 + /** + * 接收微信公众号的校验签名 + * + * 对应 文档 + */ + @ApiOperation("校验签名") // 参见 @GetMapping(value = "/{appId}", produces = "text/plain;charset=utf-8") public String checkSignature(@PathVariable("appId") String appId, MpOpenCheckSignatureReqVO reqVO) { @@ -37,4 +42,15 @@ public class MpOpenController { return "非法请求"; } + /** + * 接收微信公众号的消息推送 + * + * 文档 + */ + @ApiOperation("处理消息") + @PostMapping(value = "/{appId}", produces = "application/xml; charset=UTF-8") + public String handleMessage() { + return "123"; + } + }