企业微信推送
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user