调整注解和注释

This commit is contained in:
mofung1 2023-03-21 14:52:53 +08:00
parent b3b57c13d1
commit a32d023a8c
2 changed files with 0 additions and 4 deletions

View File

@ -1,15 +1,12 @@
package com.mdd.admin.controller.channel; package com.mdd.admin.controller.channel;
import com.mdd.admin.service.IChannelOaCallBackService; import com.mdd.admin.service.IChannelOaCallBackService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
@AllArgsConstructor
@RestController @RestController
@RequestMapping("api/channel/oa") @RequestMapping("api/channel/oa")
@Api(tags = "公众号服务器验证及消息回复") @Api(tags = "公众号服务器验证及消息回复")

View File

@ -39,7 +39,6 @@ public class ChannelOaCallBackServiceImpl implements IChannelOaCallBackService {
public String checkSignature(String signature, String timestamp, String nonce, String echostr) { public String checkSignature(String signature, String timestamp, String nonce, String echostr) {
WxMpService wxMpService = WxMnpDriver.oa(); WxMpService wxMpService = WxMnpDriver.oa();
if (wxMpService.checkSignature(timestamp, nonce, signature)) { if (wxMpService.checkSignature(timestamp, nonce, signature)) {
// 消息合法, 原样返回echostr
return echostr; return echostr;
} }
return "非法请求"; return "非法请求";