zero 1 rok pred
rodič
commit
ee35533beb

+ 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;