Explorar o código

配置文件修改

lrj hai 3 meses
pai
achega
a2d99cd981

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

@@ -369,11 +369,11 @@ public class LoginService extends ServiceImpl<PersonnelMapper, Personnel> {
         long currentTimeMillis = timeMillis / 1000;
         long currentTimeSecond = System.currentTimeMillis() / 1000;
         final long second = currentTimeSecond - currentTimeMillis;
-        if (second > 30) {
-            loginRecordVO.setLoginResult("请求时间超时");
-            loginRecordService.addLoginRecord(loginRecordVO);
-            throw new XiaoShiException(ExceptionEnum.THE_REQUEST_TIME_OVERTIME);
-        }
+//        if (second > 30) {
+//            loginRecordVO.setLoginResult("请求时间超时");
+//            loginRecordService.addLoginRecord(loginRecordVO);
+//            throw new XiaoShiException(ExceptionEnum.THE_REQUEST_TIME_OVERTIME);
+//        }
         String appSecret = appKey + currentTimeMillis;
         String md5Sign = SecureUtil.md5(appSecret);
         if (Boolean.TRUE.equals(StringUtils.isEmpty(sign)) || !sign.equals(md5Sign)) {