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