mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-20 01:35:55 +08:00
调整注解和注释
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
package com.mdd.admin.controller.channel;
|
||||
|
||||
|
||||
import com.mdd.admin.service.IChannelOaCallBackService;
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
|
||||
@AllArgsConstructor
|
||||
@RestController
|
||||
@RequestMapping("api/channel/oa")
|
||||
@Api(tags = "公众号服务器验证及消息回复")
|
||||
|
||||
@@ -39,7 +39,6 @@ public class ChannelOaCallBackServiceImpl implements IChannelOaCallBackService {
|
||||
public String checkSignature(String signature, String timestamp, String nonce, String echostr) {
|
||||
WxMpService wxMpService = WxMnpDriver.oa();
|
||||
if (wxMpService.checkSignature(timestamp, nonce, signature)) {
|
||||
// 消息合法, 原样返回echostr
|
||||
return echostr;
|
||||
}
|
||||
return "非法请求";
|
||||
|
||||
Reference in New Issue
Block a user