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