|
@@ -94,6 +94,9 @@ public class Task {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ILiveCouponIssueService liveCouponIssueService;
|
|
private ILiveCouponIssueService liveCouponIssueService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ILiveGoodsService liveGoodsService;
|
|
|
|
|
+
|
|
|
@Autowired
|
|
@Autowired
|
|
|
public FsJstAftersalePushService fsJstAftersalePushService;
|
|
public FsJstAftersalePushService fsJstAftersalePushService;
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -210,6 +213,12 @@ public class Task {
|
|
|
redisCache.redisTemplate.opsForZSet().remove(key + live.getLiveId(), JSON.toJSONString(liveAutoTask),liveAutoTask.getAbsValue().getTime());
|
|
redisCache.redisTemplate.opsForZSet().remove(key + live.getLiveId(), JSON.toJSONString(liveAutoTask),liveAutoTask.getAbsValue().getTime());
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+ // 直播间关闭时,下架所有直播商品
|
|
|
|
|
+ try {
|
|
|
|
|
+ liveGoodsService.unshelfAllGoodsByLiveId(live.getLiveId());
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ log.error("直播间关闭下架所有商品失败, liveId: {}", live.getLiveId(), e);
|
|
|
|
|
+ }
|
|
|
String cacheKey = String.format(LiveKeysConstant.LIVE_DATA_CACHE, live.getLiveId());
|
|
String cacheKey = String.format(LiveKeysConstant.LIVE_DATA_CACHE, live.getLiveId());
|
|
|
redisCache.deleteObject(cacheKey);
|
|
redisCache.deleteObject(cacheKey);
|
|
|
webSocketServer.removeLikeCountCache(live.getLiveId());
|
|
webSocketServer.removeLikeCountCache(live.getLiveId());
|