调整注解和注释
This commit is contained in:
parent
b3b57c13d1
commit
a32d023a8c
|
|
@ -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 "非法请求";
|
||||
|
|
|
|||
Loading…
Reference in New Issue