From 50cdbfa08e5300c6a15b1906ba72759a7894fd2f Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 6 Sep 2025 16:02:27 +0800 Subject: [PATCH] feat(notification): Record the unsent work wechat messages --- .../WeChat/Work/WeChatWorkNotificationPublishProvider.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.WeChat.Work/LINGYUN/Abp/Notifications/WeChat/Work/WeChatWorkNotificationPublishProvider.cs b/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.WeChat.Work/LINGYUN/Abp/Notifications/WeChat/Work/WeChatWorkNotificationPublishProvider.cs index 5047fd01c..2eaf314ac 100644 --- a/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.WeChat.Work/LINGYUN/Abp/Notifications/WeChat/Work/WeChatWorkNotificationPublishProvider.cs +++ b/aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.WeChat.Work/LINGYUN/Abp/Notifications/WeChat/Work/WeChatWorkNotificationPublishProvider.cs @@ -52,7 +52,7 @@ public class WeChatWorkNotificationPublishProvider : NotificationPublishProvider var agentId = await SettingProvider.GetOrNullAsync(WeChatWorkSettingNames.Connection.AgentId); if (agentId.IsNullOrWhiteSpace()) { - Logger.LogWarning("Unable to send enterprise wechat messages because agentId is not set."); + Logger.LogWarning("Unable to send work weixin messages because agentId is not set."); return; } @@ -91,6 +91,7 @@ public class WeChatWorkNotificationPublishProvider : NotificationPublishProvider if (!findUserList.Any()) { + Logger.LogWarning("Unable to send work weixin messages because findUserList is empty."); return; } @@ -136,6 +137,7 @@ public class WeChatWorkNotificationPublishProvider : NotificationPublishProvider if (message == null) { + Logger.LogWarning("Unable to send work weixin messages because WeChatWorkMessage is null."); return; }