Browse Source

feat(all): 索菲亚工厂

1 增加华之韵物流对接
pre-production
zhaoqiaobo 3 weeks ago
parent
commit
9afac979c2
  1. 2
      blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/interceptor/LocalServerLoginAccountsInterceptor.java

2
blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/interceptor/LocalServerLoginAccountsInterceptor.java

@ -90,7 +90,7 @@ public class LocalServerLoginAccountsInterceptor extends HandlerInterceptorAdapt
} }
// 验证签名 // 验证签名
String auth = suoFeiYaProperties.getAuth(); String auth = suoFeiYaProperties.getAuth();
String md5Hex = new String(MD5.create().digest(authTime + auth)).toUpperCase(); String md5Hex = MD5.create().digestHex(authTime + auth).toUpperCase();
log.info("##########preHandle: md5Hex={}", md5Hex); log.info("##########preHandle: md5Hex={}", md5Hex);
if (!StrUtil.equals(md5Hex, sign)) { if (!StrUtil.equals(md5Hex, sign)) {
returnJson(response, JSONObject.toJSONString(R.fail(1, "认证不通过,签名不正确"))); returnJson(response, JSONObject.toJSONString(R.fail(1, "认证不通过,签名不正确")));

Loading…
Cancel
Save