zero пре 1 година
родитељ
комит
ee35533beb
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      PCS/src/main/java/cn/cslg/permission/service/LoginService.java

+ 2 - 2
PCS/src/main/java/cn/cslg/permission/service/LoginService.java

@@ -351,7 +351,7 @@ public class LoginService extends ServiceImpl<PersonnelMapper, Personnel> {
         long currentTimeMillis = vo.getCurrentTimeMillis() / 1000;
         long currentTimeSecond = System.currentTimeMillis() / 1000;
         final long second = currentTimeSecond - currentTimeMillis / 1000;
-        if (second > 5) {
+        if (second > 30) {
             return Response.error(ResponseEnum.THE_REQUEST_TIME_OVERTIME);
         }
         String appSecret = appKey + currentTimeMillis;
@@ -456,7 +456,7 @@ public class LoginService extends ServiceImpl<PersonnelMapper, Personnel> {
         long currentTimeMillis = vo.getCurrentTimeMillis() / 1000;
         long currentTimeSecond = System.currentTimeMillis() / 1000;
         final long second = currentTimeSecond - currentTimeMillis;
-        if (second > 5) {
+        if (second > 30) {
             return Response.error(ResponseEnum.THE_REQUEST_TIME_OVERTIME);
         }
         String appSecret = appKey + currentTimeMillis;