去除公众号回调接口登录验证

This commit is contained in:
mofung1 2023-03-21 15:05:23 +08:00
parent a32d023a8c
commit d5c6226930
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package com.mdd.admin.controller.channel;
import com.mdd.admin.service.IChannelOaCallBackService;
import com.mdd.common.aop.NotLogin;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;
@ -17,6 +18,7 @@ public class ChannelOaCallBackController {
private IChannelOaCallBackService iChannelOaCallBackService;
// 公众号服务器验证 消息回复
@NotLogin
@GetMapping(name = "/callback", produces = "text/plain;charset=utf-8")
public String authGet(@RequestParam(name = "signature", required = false) String signature,
@RequestParam(name = "timestamp", required = false) String timestamp,
@ -27,6 +29,7 @@ public class ChannelOaCallBackController {
// 消息回复
@NotLogin
@PostMapping(produces = "application/xml; charset=UTF-8")
public String post(@RequestBody String requestBody,
@RequestParam("signature") String signature,