|
|
@@ -585,6 +585,9 @@ public class WebSocketServer {
|
|
|
}
|
|
|
LiveCouponIssue liveCouponIssue = liveCouponIssueService.selectLiveCouponIssueById(liveCoupon.getIssueId());
|
|
|
LiveCouponIssueRelation relation = liveCouponMapper.selectCouponRelation(task.getLiveId(), liveCouponIssue.getId());
|
|
|
+ if (liveCoupon != null) {
|
|
|
+ redisCache.setCacheObject(String.format(LiveKeysConstant.LIVE_COUPON_NUM , liveCouponIssue.getId()), liveCouponIssue.getRemainCount().intValue(), 30, TimeUnit.MINUTES);
|
|
|
+ }
|
|
|
HashMap<String, Object> data = new HashMap<>();
|
|
|
data.put("liveId", task.getLiveId());
|
|
|
data.put("couponIssueId", liveCouponIssue.getId());
|