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;