mq单向消息报错问题,先做还原处理

This commit is contained in:
Chopper 2021-07-06 14:53:17 +08:00
parent 9ff40291ee
commit cd2942a96b

View File

@ -235,7 +235,7 @@ public class GoodsSkuServiceImpl extends ServiceImpl<GoodsSkuMapper, GoodsSku> i
if (UserContext.getCurrentUser() != null) {
FootPrint footPrint = new FootPrint(UserContext.getCurrentUser().getId(), goodsId, skuId);
String destination = rocketmqCustomProperties.getGoodsTopic() + ":" + GoodsTagsEnum.VIEW_GOODS.name();
rocketMQTemplate.sendOneWay(destination, footPrint);
rocketMQTemplate.asyncSend(destination, footPrint, RocketmqSendCallbackBuilder.commonCallback());
}
return map;
}