浏览代码

fixed encryption

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;