Browse Source

Merge pull request #1321 from colinin/notifications-work-weixin

feat(notification): Record the unsent work wechat messages
pull/1327/head
yx lin 5 months ago
committed by GitHub
parent
commit
1bc3fcd05c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      aspnet-core/modules/realtime-notifications/LINGYUN.Abp.Notifications.WeChat.Work/LINGYUN/Abp/Notifications/WeChat/Work/WeChatWorkNotificationPublishProvider.cs

4
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;
}

Loading…
Cancel
Save