This commit is contained in:
DDIsFriend
2023-09-07 17:09:41 +08:00
parent 5aa7ce5659
commit c853b73127
663 changed files with 57056 additions and 24723 deletions

View File

@@ -61,7 +61,10 @@ class NotificationService: UNNotificationServiceExtension {
}
}
//
if let broadcastKeywords = (userInfo[pushNoti_broadcastKeywords_key] as? String),broadcastKeywords.isEmpty == false {
if GROUP.isAppointmentPushNotification(userInfo: userInfo) == true {
bestAttemptContent.sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: appointmentOrderAudio_key))
contentHandler(bestAttemptContent)
}else if let broadcastKeywords = (userInfo[pushNoti_broadcastKeywords_key] as? String),broadcastKeywords.isEmpty == false {
bestAttemptContent.sound = .default
contentHandler(bestAttemptContent)
}else{