|
|
@@ -106,6 +106,9 @@ public class GroupsRelationNetflixServiceImpl implements GroupsRelationNetflixSe
|
|
|
throw BusinessRuntimeException.getInstance("系统错误");
|
|
|
}
|
|
|
User user = userMapper.selectById(relation.getUserId());
|
|
|
+ if (!redisService.setNx(RedisService.key.NF_SET_TIME_LIMIT.getName() + relationId, relationId, RedisService.key.NF_SET_TIME_LIMIT.getTimeout())) {
|
|
|
+ throw BusinessRuntimeException.getInstance("一分钟内可执行一次");
|
|
|
+ }
|
|
|
return setNetflixSeatNum(relation.getNum(), user.getNickname(), account.getAccount(), account.getPassword(), relation.getExpiryTime(), code);
|
|
|
}
|
|
|
|