异常领取问题
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.sqx.modules.discSpinning.controller;
|
package com.sqx.modules.discSpinning.controller;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollectionUtil;
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
@@ -233,6 +234,9 @@ public class DiscSpinningController {
|
|||||||
redisKey = RedisKeys.getDateKey("spinning:draw:taskM") + userId;
|
redisKey = RedisKeys.getDateKey("spinning:draw:taskM") + userId;
|
||||||
}
|
}
|
||||||
Map<String, Object> week = redisUtils.get(redisKey, Map.class);
|
Map<String, Object> week = redisUtils.get(redisKey, Map.class);
|
||||||
|
if (CollectionUtil.isEmpty(week)) {
|
||||||
|
return Result.error("请求失败,请联系管理员");
|
||||||
|
}
|
||||||
for (Map.Entry<String, Object> entry : week.entrySet()) {
|
for (Map.Entry<String, Object> entry : week.entrySet()) {
|
||||||
int value = new BigDecimal(entry.getValue().toString()).intValue();
|
int value = new BigDecimal(entry.getValue().toString()).intValue();
|
||||||
if (value > 1) {
|
if (value > 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user