微信消息推送回调接口参数调整,通过消息推送服务器配置-解决非json配置问题
This commit is contained in:
parent
2ebea74b9e
commit
c3a93737a0
@ -149,10 +149,13 @@ public class WeiXinController extends BaseControllerImpl {
|
||||
@RequestParam(value = "timestamp",required = false) String timestamp,
|
||||
@RequestParam(value = "nonce",required = false) String nonce,
|
||||
@RequestParam(value = "echostr",required = false) String echostr) {
|
||||
if(StringUtils.isEmpty(signature) || StringUtils.isEmpty(signature) || StringUtils.isEmpty(signature) || StringUtils.isEmpty(signature) ) {
|
||||
if(StringUtils.isEmpty(signature) || StringUtils.isEmpty(timestamp) || StringUtils.isEmpty(nonce) || StringUtils.isEmpty(echostr) ) {
|
||||
return CommonResult.success("校验成功");//todo 配置好消息链接改回来,腾讯服务器测试提交没有发送参数,导致报错
|
||||
}
|
||||
boolean checked=weiXinService.checkSignature(timestamp, nonce, signature);
|
||||
if(checked){
|
||||
return CommonResult.success("校验成功");
|
||||
}
|
||||
if(!checked){
|
||||
return CommonResult.failed("校验失败");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user