From ef0e3359d1a09b134f364e1d863af9fd91a12057 Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" <123456> Date: Mon, 4 Sep 2023 21:11:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=B9=E6=AD=A4=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E7=9A=84=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../factory/interceptor/ZbFactoryAccountsInterceptor.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/blade-service/logpm-factory/src/main/java/com/logpm/factory/interceptor/ZbFactoryAccountsInterceptor.java b/blade-service/logpm-factory/src/main/java/com/logpm/factory/interceptor/ZbFactoryAccountsInterceptor.java index dcb80599c..6973395d2 100644 --- a/blade-service/logpm-factory/src/main/java/com/logpm/factory/interceptor/ZbFactoryAccountsInterceptor.java +++ b/blade-service/logpm-factory/src/main/java/com/logpm/factory/interceptor/ZbFactoryAccountsInterceptor.java @@ -39,6 +39,7 @@ public class ZbFactoryAccountsInterceptor implements HandlerInterceptor { String body = myRequestWrapper.getBody(); JSONObject bodyJson = JSONObject.parseObject(body); + log.info("bodyJson {}",bodyJson,toString()); Map params = new HashMap<>(); params.put("app_key",appKey); @@ -48,8 +49,12 @@ public class ZbFactoryAccountsInterceptor implements HandlerInterceptor { params.put("sign_method",signMethod); params.put("timestamp",timestamp); params.put("v",v); - + log.info(" 验证参数 {}",bodyJson); String newSign = QmSignUntil.signTopRequest(params, zbFactoryProperties.getSecretkey(), signMethod, bodyJson.toJSONString()); + log.info(" 签名 old {}",sign); + log.info(" 新签名 old {}",newSign); + + if(!newSign.equals(sign)){ returnJson(response,JSONObject.toJSONString(R.fail(203,"签名认证失败"))); return false;