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 284cde284..2fb146825 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 @@ -50,14 +50,11 @@ public class ZbFactoryAccountsInterceptor implements HandlerInterceptor { params.put("timestamp",timestamp); params.put("v",v); log.info(" 验证参数 {}",bodyJson); - String newSign = QmSignUntil.signTopRequest(params, zbFactoryProperties.getSecretkey(), signMethod, bodyJson.toJSONString()); + String s = body.replaceAll(" +", ""); + String newSign = QmSignUntil.signTopRequest(params, zbFactoryProperties.getSecretkey(), signMethod, s); log.info(" 签名 old {}",sign); log.info(" 新签名 old {}",newSign); - - - String s = body.replaceAll(" +", ""); - String newSign = QmSignUntil.signTopRequest(params, zbFactoryProperties.getSecretkey(), signMethod, s); if(!newSign.equals(sign)){ returnJson(response,JSONObject.toJSONString(R.fail(203,"签名认证失败"))); return false;