Browse Source

增加对此请求的日志

newStockUp
pref_mail@163.com 1 year ago
parent
commit
ef0e3359d1
  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

@ -39,6 +39,7 @@ public class ZbFactoryAccountsInterceptor implements HandlerInterceptor {
String body = myRequestWrapper.getBody();
JSONObject bodyJson = JSONObject.parseObject(body);
log.info("bodyJson {}",bodyJson,toString());
Map<String, String> 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;

Loading…
Cancel
Save