|
|
|
@ -50,7 +50,11 @@ public class ZbFactoryAccountsInterceptor implements HandlerInterceptor {
|
|
|
|
|
params.put("timestamp",timestamp); |
|
|
|
|
params.put("v",v); |
|
|
|
|
|
|
|
|
|
String s = body.replaceAll(" +", ""); |
|
|
|
|
String s = body.replaceAll("\\s+", ""); |
|
|
|
|
log.info("################### params={}",params); |
|
|
|
|
log.info("################### secretkey={}",zbFactoryProperties.getSecretkey()); |
|
|
|
|
log.info("################### signMethod={}",signMethod); |
|
|
|
|
|
|
|
|
|
String newSign = QmSignUntil.signTopRequest(params, zbFactoryProperties.getSecretkey(), signMethod, s); |
|
|
|
|
if(!newSign.equals(sign)){ |
|
|
|
|
returnJson(response,JSONObject.toJSONString(R.fail(203,"签名认证失败"))); |
|
|
|
|