From 2b35339fd67969df7acb8c75bfceafa1ba134b41 Mon Sep 17 00:00:00 2001
From: chenjiahe <763432473@qq.com>
Date: 星期四, 11 八月 2022 14:32:11 +0800
Subject: [PATCH] 签名有效时间提升到30秒钟

---
 src/main/java/com/platform/verification/VerificationTool.java |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/platform/verification/VerificationTool.java b/src/main/java/com/platform/verification/VerificationTool.java
index 0fce72e..a94fca7 100644
--- a/src/main/java/com/platform/verification/VerificationTool.java
+++ b/src/main/java/com/platform/verification/VerificationTool.java
@@ -1,8 +1,5 @@
 package com.platform.verification;
 
-
-import com.alibaba.fastjson.JSONObject;
-import com.hx.redis.RedisUtil;
 import com.hx.util.DateUtil;
 import com.hx.util.StringUtils;
 import com.hx.util.rsa.RSAUtil;
@@ -41,7 +38,6 @@
             return PlatformResult.failure(PlatformCode.ERROR_APPIS, "APPID鏃犳晥");
         }
 
-
         if(StringUtils.isEmpty(thirtApplication.getPrivateKey())){
             return PlatformResult.failure(PlatformCode.ERROR_SIGN, "绛惧悕閿欒,APPID鏃犳晥");
         }
@@ -77,13 +73,13 @@
             return PlatformResult.failure(PlatformCode.ERROR_SIGN, "绛惧悕閿欒05");
         }
 
-        //鎺ュ彛鏈夋晥5绉掗挓
-        if(System.currentTimeMillis()-date.getTime() > 10000){
+        //鎺ュ彛鏈夋晥30绉掗挓
+        if(System.currentTimeMillis()-date.getTime() > 30000){
             return PlatformResult.failure(PlatformCode.ERRO_VISIT_OVERTIMR, "璁块棶瓒呮椂");
         }
 
         thirtApplication.setPrivateKey(null);
-        request.setAttribute(LoginConstant.LOGIN_APPLY,thirtApplication);
+        request.getSession().setAttribute(LoginConstant.LOGIN_APPLY,thirtApplication);
 
         return PlatformResult.success();
     }

--
Gitblit v1.8.0