|
|
@@ -155,14 +155,17 @@ public class GroupsRelationNetflixServiceImpl implements GroupsRelationNetflixSe
|
|
|
*/
|
|
|
@Override
|
|
|
public void timingSetNetflix(Integer num, String nickname, String account, String password, Date expiryTime) {
|
|
|
- String key = RedisService.key.NETFLIX_SET_LIMIT_TIME.getName();
|
|
|
- if (!redisService.setNx(key, 1L, 30L)) {
|
|
|
- jobManager.addJob(30001, () -> {
|
|
|
- timingSetNetflix(num, nickname, account, password, expiryTime);
|
|
|
- });
|
|
|
- } else {
|
|
|
- setNetflixSeatNum(num, nickname, account, password, expiryTime, null);
|
|
|
- log.info("当前时间:{}开始调用设置奈飞座位信息接口", DateTime.now());
|
|
|
+ try {
|
|
|
+ String key = RedisService.key.NETFLIX_SET_LIMIT_TIME.getName();
|
|
|
+ if (!redisService.setNx(key, 1L, 30L)) {
|
|
|
+ jobManager.addJob(30001, () -> {
|
|
|
+ timingSetNetflix(num, nickname, account, password, expiryTime);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ setNetflixSeatNum(num, nickname, account, password, expiryTime, null);
|
|
|
+ log.info("当前时间:{}开始调用设置奈飞座位信息接口", DateTime.now());
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
}
|
|
|
}
|
|
|
}
|