From 640ff18d2d7f4be02ddb7f8f75e899f05545eb98 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期一, 05 二月 2024 11:56:52 +0800 Subject: [PATCH] 更新bug修改 --- cloud-server-activity/src/main/java/com/dsh/activity/service/impl/CouponServiceImpl.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud-server-activity/src/main/java/com/dsh/activity/service/impl/CouponServiceImpl.java b/cloud-server-activity/src/main/java/com/dsh/activity/service/impl/CouponServiceImpl.java index bb77904..a8cb69a 100644 --- a/cloud-server-activity/src/main/java/com/dsh/activity/service/impl/CouponServiceImpl.java +++ b/cloud-server-activity/src/main/java/com/dsh/activity/service/impl/CouponServiceImpl.java @@ -68,11 +68,11 @@ public List<CouponListVo> queryCouponList(Integer uid, Integer distributionMethod) throws Exception { String value = redisUtil.getValue("VIP_P_" + uid); if (ToolUtil.isEmpty(value)) { - Thread.sleep(5000); + Thread.sleep(3000); value = redisUtil.getValue("VIP_P_" + uid); } List<CouponListVo> listVos = new ArrayList<>(); - if (ToolUtil.isEmpty(value)) { + if (ToolUtil.isNotEmpty(value)) { List<Long> longs = JSON.parseArray(value, Long.class); List<UserCoupon> list = userCouponService.getBaseMapper().selectBatchIds(longs); List<Integer> collect = list.stream().map(UserCoupon::getCouponId).collect(Collectors.toList()); -- Gitblit v1.7.1