Commit 3fdcae4e by Future

发送通知栏消息异常捕获

parent 47b8b698
......@@ -80,10 +80,15 @@ public class MqSender {
* @return
*/
public SendResult orderSend(String topic, String tag, PushDTO pushDTO) {
try {
log.info("mq按顺序发送topic: {} tag: {} 推送内容: {}", topic, tag, JSON.toJSONString(pushDTO));
SendResult sendResult = rocketMqProducerService.orderSend(topic, tag, JSON.toJSONString(pushDTO), 1);
log.info("mq按顺序发送topic: {} tag: {} 返回结果: {}", topic, tag, JSON.toJSONString(sendResult));
return sendResult;
} catch (Exception e) {
log.info("发送通知栏消息异常 ", e);
return null;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment