|
@@ -116,6 +116,8 @@ public class RiskServiceImpl implements RiskService {
|
|
|
|
|
|
|
|
@Value("${risk.visitor.validity-period:48}")
|
|
@Value("${risk.visitor.validity-period:48}")
|
|
|
private Integer loginCheckValidityPeriod;
|
|
private Integer loginCheckValidityPeriod;
|
|
|
|
|
+ @Resource
|
|
|
|
|
+ private ScheduledExecutorService scheduledExecutorService;
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -747,9 +749,7 @@ public class RiskServiceImpl implements RiskService {
|
|
|
addBannedRecord(Collections.singletonList(dyzUser.getUserId()),param);
|
|
addBannedRecord(Collections.singletonList(dyzUser.getUserId()),param);
|
|
|
YtApp app = appMapper.selectRiskApp(dyzUser.getAppId());
|
|
YtApp app = appMapper.selectRiskApp(dyzUser.getAppId());
|
|
|
YtPlatformUserApp appInfo = appMapper.selectParentApp(app.getSuperiorId());
|
|
YtPlatformUserApp appInfo = appMapper.selectParentApp(app.getSuperiorId());
|
|
|
-
|
|
|
|
|
- ScheduledExecutorService scheduled = Executors.newSingleThreadScheduledExecutor();
|
|
|
|
|
- scheduled.schedule(()->{
|
|
|
|
|
|
|
+ scheduledExecutorService.schedule(()->{
|
|
|
YtDyzUser next = new YtDyzUser();
|
|
YtDyzUser next = new YtDyzUser();
|
|
|
next.setUserId(dyzUser.getUserId());
|
|
next.setUserId(dyzUser.getUserId());
|
|
|
next.setUserStatus(UserStatusEnum.LOCK.getCode());
|
|
next.setUserStatus(UserStatusEnum.LOCK.getCode());
|
|
@@ -759,7 +759,6 @@ public class RiskServiceImpl implements RiskService {
|
|
|
},300, TimeUnit.MILLISECONDS);
|
|
},300, TimeUnit.MILLISECONDS);
|
|
|
//修改为解锁用户存入redis 24小时后进行解锁
|
|
//修改为解锁用户存入redis 24小时后进行解锁
|
|
|
redisService.setTimeOutHoursStr("unlock_"+dyzUser.getUserId(),dyzUser.getAppId(), 24);
|
|
redisService.setTimeOutHoursStr("unlock_"+dyzUser.getUserId(),dyzUser.getAppId(), 24);
|
|
|
- scheduled.shutdown();
|
|
|
|
|
throw new CustomerException(errMsg);
|
|
throw new CustomerException(errMsg);
|
|
|
}
|
|
}
|
|
|
|
|
|