Browse Source

feat(all): 索菲亚工厂

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

2
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;
}

2
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;
}

Loading…
Cancel
Save