1.推送异常导致停止推送

This commit is contained in:
2024-07-25 11:26:07 +08:00
parent e87537850a
commit 93f5c51d44

View File

@@ -111,6 +111,11 @@ public class WxAccountUtil {
}});
}};
log.info("开始发送库存预警消息, 接收用户openId: {}, 消息数据: {}", toUserOpenId, data);
return sendTemplateMsg(msgTmpId, toUserOpenId, data);
try {
return sendTemplateMsg(msgTmpId, toUserOpenId, data);
}catch (Exception e) {
log.error("发送失败: {}", e.getMessage());
return null;
}
}
}