This commit is contained in:
Van0313
2025-06-02 22:09:49 +08:00
parent 893402279e
commit 4931842ee6
2 changed files with 13 additions and 11 deletions

View File

@@ -2056,7 +2056,7 @@ public class JDUtil {
totalCount += count;
summaryBuilder.append("型号:").append(modelNumber != null ? modelNumber : "未知")
.append("\n数量").append(count);
.append("\n数量").append(count).append("\n");
}
// 添加合计

View File

@@ -226,17 +226,19 @@ public class WXUtil {
String messageContent = "Jarvis 更新完成 [亲亲][亲亲][亲亲] ";
String fromWxid = default_bot_wxid; // 来源为机器人自身
for (SuperAdmin admin : super_admins.values()) {
if (!notify_wx.contains(admin.getWxid())){
try {
sendTextMessage(admin.getWxid(), messageContent, 1, fromWxid, false);
notify_wx.add(admin.getWxid());
} catch (Exception e) {
logger.warn("发送重启通知失败,目标 wxid: {}", admin.getWxid(), e);
}
}
sendTextMessage(default_super_admin_wxid, messageContent, 1, fromWxid, false);
}
//for (SuperAdmin admin : super_admins.values()) {
// if (!notify_wx.contains(admin.getWxid())){
// try {
// sendTextMessage(admin.getWxid(), messageContent, 1, fromWxid, false);
// notify_wx.add(admin.getWxid());
// } catch (Exception e) {
// logger.warn("发送重启通知失败,目标 wxid: {}", admin.getWxid(), e);
// }
// }
//
//}
restartNoticeSent = true;