Browse Source

1.志邦接口签名打印参数

newStockUp
zhenghaoyu 1 year ago
parent
commit
0e01136ab7
  1. 7
      blade-service/logpm-factory/src/main/java/com/logpm/factory/interceptor/ZbFactoryAccountsInterceptor.java

7
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;

Loading…
Cancel
Save