From 756078b677409140c166dc3cb7fcefa272afaea9 Mon Sep 17 00:00:00 2001 From: zhaoqiaobo <583671871@qq.com> Date: Thu, 26 Dec 2024 17:42:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(all):=20=E7=B4=A2=E8=8F=B2=E4=BA=9A?= =?UTF-8?q?=E5=B7=A5=E5=8E=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1 增加华之韵物流对接 --- .../interceptor/LocalServerLoginAccountsInterceptor.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/interceptor/LocalServerLoginAccountsInterceptor.java b/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/interceptor/LocalServerLoginAccountsInterceptor.java index d03aeebae..97c5f3284 100644 --- a/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/interceptor/LocalServerLoginAccountsInterceptor.java +++ b/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/interceptor/LocalServerLoginAccountsInterceptor.java @@ -72,6 +72,7 @@ public class LocalServerLoginAccountsInterceptor extends HandlerInterceptorAdapt // 获取头中参数 String authTime = request.getHeader("authTime"); if (StrUtil.isEmpty(authTime)) { + log.info("##########preHandle: 时间戳不能为空"); returnJson(response, JSONObject.toJSONString(R.fail(1, "时间戳不能为空"))); return false; } @@ -84,6 +85,7 @@ public class LocalServerLoginAccountsInterceptor extends HandlerInterceptorAdapt if (StringUtil.isNotBlank(authTime)) { long authTimeLong = Long.parseLong(authTime); if (secondTimestamp - authTimeLong > suoFeiYaProperties.getAuthTime()) { + log.info("##########preHandle: 时间戳过期"); returnJson(response, JSONObject.toJSONString(R.fail(1, "认证不通过,时间戳过期"))); return false; } @@ -93,6 +95,7 @@ public class LocalServerLoginAccountsInterceptor extends HandlerInterceptorAdapt String md5Hex = MD5.create().digestHex(authTime + auth).toUpperCase(); log.info("##########preHandle: md5Hex={}", md5Hex); if (!StrUtil.equals(md5Hex, sign)) { + log.info("##########preHandle: 签名不正确"); returnJson(response, JSONObject.toJSONString(R.fail(1, "认证不通过,签名不正确"))); return false; }