1.库存预警报错停止推送修复

This commit is contained in:
SongZhang 2024-07-25 11:27:35 +08:00
parent 6c885ab5a1
commit 5cb005ccd0
1 changed files with 6 additions and 1 deletions

View File

@ -110,6 +110,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;
}
}
}