|
@@ -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)) {
|