增加校验
This commit is contained in:
parent
9e70bfd42e
commit
84089405d1
|
|
@ -233,6 +233,9 @@ public class DiscSpinningController {
|
|||
if (source == 1 && sourceId == null) {
|
||||
throw new CzgException("异常请求");
|
||||
}
|
||||
if(sourceId == null){
|
||||
return Result.error("请求失败,请联系管理员");
|
||||
}
|
||||
if (DataLimitUtil.isAllowed(RedisKeys.getDateKey("spinning:draw:") + sourceId, 120)) {
|
||||
DiscSpinningRecord draws = discSpinningService.draws(i == null ? 1 : i + 1, amount, sourceId, userId, source);
|
||||
executor.schedule(() -> discSpinningService.receive1(draws), 4, TimeUnit.SECONDS);
|
||||
|
|
|
|||
Loading…
Reference in New Issue