From 60eac88458dec0ffda7af88d5daed6ea1857311d Mon Sep 17 00:00:00 2001 From: zhaoqiaobo <583671871@qq.com> Date: Thu, 26 Dec 2024 17:41:30 +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 | 2 +- .../suofeiya/pros/FactoryDataSuoFeiYaProperties.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 68089e4de..d03aeebae 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 @@ -83,7 +83,7 @@ public class LocalServerLoginAccountsInterceptor extends HandlerInterceptorAdapt // 验证时间 不能大于5秒 if (StringUtil.isNotBlank(authTime)) { long authTimeLong = Long.parseLong(authTime); - if (secondTimestamp - authTimeLong > 5) { + if (secondTimestamp - authTimeLong > suoFeiYaProperties.getAuthTime()) { returnJson(response, JSONObject.toJSONString(R.fail(1, "认证不通过,时间戳过期"))); return false; } diff --git a/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/pros/FactoryDataSuoFeiYaProperties.java b/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/pros/FactoryDataSuoFeiYaProperties.java index dc1ccc648..d744c2f1c 100644 --- a/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/pros/FactoryDataSuoFeiYaProperties.java +++ b/blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/pros/FactoryDataSuoFeiYaProperties.java @@ -16,5 +16,7 @@ public class FactoryDataSuoFeiYaProperties { * 颁布给工厂的认证码 */ private String auth; + /** auth过期时间 */ + private Long authTime; }