fix: fill notification OfflinePush by config

pull/2422/head
杨林 1 year ago
parent 346e084d2f
commit fdebf40066

@ -324,7 +324,7 @@ func (s *NotificationSender) send(ctx context.Context, sendID, recvID string, co
options := config.GetOptionsByNotification(optionsConfig) options := config.GetOptionsByNotification(optionsConfig)
s.SetOptionsByContentType(ctx, options, contentType) s.SetOptionsByContentType(ctx, options, contentType)
msg.Options = options msg.Options = options
//根据notification.yml中的配置填充离线推送参数 // fill Notification OfflinePush by config
offlineInfo.Title = optionsConfig.OfflinePush.Title offlineInfo.Title = optionsConfig.OfflinePush.Title
offlineInfo.Desc = optionsConfig.OfflinePush.Desc offlineInfo.Desc = optionsConfig.OfflinePush.Desc
offlineInfo.Ex = optionsConfig.OfflinePush.Ext offlineInfo.Ex = optionsConfig.OfflinePush.Ext

Loading…
Cancel
Save