Browse Source

去除时间校验

wangmh 7 years ago
parent
commit
2ab6d49101

+ 3 - 3
sso-server/src/main/java/com/uas/sso/controller/BaseController.java

@@ -318,9 +318,9 @@ public class BaseController {
         }
 
         // 请求时间不小于当前时间10秒,单位毫秒
-        if (System.currentTimeMillis() - timestamp > EXPIRE_IN || System.currentTimeMillis() < timestamp) {
-            throw new VisibleError("请求超时");
-        }
+//        if (System.currentTimeMillis() - timestamp > EXPIRE_IN || System.currentTimeMillis() < timestamp) {
+//            throw new VisibleError("请求超时");
+//        }
 
         // 判断加密信息是否有误
         String urlMessage = request.getRequestURL() + "?"