企业微信推送

This commit is contained in:
雷欧(林平凡)
2025-01-22 11:35:48 +08:00
parent 7b5233a380
commit 530f8ce0a6
3 changed files with 14 additions and 9 deletions

View File

@@ -55,12 +55,12 @@ public class MessageConsumerService implements RocketMQListener<JSONObject> {
JSONObject response = JSONObject.parseObject(responseStr);
if (response.getInteger("code") != 200) {
// TODO: 如果需要处理错误,您可以在这里添加逻辑
wxtsUtil.sendNofity("消息发送失败: " + responseStr);
wxtsUtil.sendNotify("消息发送失败: " + responseStr);
throw new RuntimeException("消息发送失败: " + responseStr);
}
//logger.info("消息成功发送并得到响应:{}", response);
} else {
wxtsUtil.sendNofity("消息发送失败,没有收到响应");
wxtsUtil.sendNotify("消息发送失败,没有收到响应");
throw new RuntimeException("消息发送失败,没有收到响应");
}
} catch (Exception e) {