From 338758884c85c3d53652db39cd1e344f80af4554 Mon Sep 17 00:00:00 2001 From: liyj <1617420630@qq.com> Date: Sat, 20 Sep 2025 09:10:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=B6=88=E6=81=AF=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E5=9B=9E=E8=B0=83=E6=8E=A5=E5=8F=A3=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=B0=83=E6=95=B4=EF=BC=8C=E9=80=9A=E8=BF=87=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E6=9C=8D=E5=8A=A1=E5=99=A8=E9=85=8D=E7=BD=AE?= =?UTF-8?q?-=E8=A7=A3=E5=86=B3=E9=9D=9Ejson=E9=85=8D=E7=BD=AE=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/account/controller/mobile/WeiXinController.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mall-account/src/main/java/com/suisung/mall/account/controller/mobile/WeiXinController.java b/mall-account/src/main/java/com/suisung/mall/account/controller/mobile/WeiXinController.java index 40254026..d239faa8 100644 --- a/mall-account/src/main/java/com/suisung/mall/account/controller/mobile/WeiXinController.java +++ b/mall-account/src/main/java/com/suisung/mall/account/controller/mobile/WeiXinController.java @@ -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("校验失败"); }