更新注释

This commit is contained in:
DDIsFriend
2023-09-06 16:20:01 +08:00
parent d7bbe2498c
commit 5aa7ce5659
4 changed files with 6 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ class NotificationService: UNNotificationServiceExtension {
bestAttemptContent.body = body
}
// group
//
if GROUP.isOrderPushNotification(userInfo: userInfo) == true {
var sound : UNNotificationSound?
@@ -53,13 +53,14 @@ class NotificationService: UNNotificationServiceExtension {
GROUP.setBestAttemptContentUserInfo(bestAttemptContentUserInfo: userInfo)
contentHandler(bestAttemptContent)
}else{
// group
if let isShowPop = (userInfo[pushNoti_broadcastKeywords_key] as? Bool), isShowPop == true {
if let userInfo = GROUP.bestAttemptContentUserInfo,GROUP.isOrderPushNotification(userInfo: userInfo) == true {
}else{
GROUP.setBestAttemptContentUserInfo(bestAttemptContentUserInfo: userInfo)
}
}
//
if let broadcastKeywords = (userInfo[pushNoti_broadcastKeywords_key] as? String),broadcastKeywords.isEmpty == false {
bestAttemptContent.sound = .default
contentHandler(bestAttemptContent)