This commit is contained in:
DDIsFriend
2023-08-30 17:48:23 +08:00
parent 61ff533423
commit 456b879a00
8 changed files with 137 additions and 298 deletions

View File

@@ -23,11 +23,10 @@ class NotificationService: UNNotificationServiceExtension {
let userInfo = bestAttemptContent.userInfo
// group
let aps = userInfo[aps_key] as? [String:Any]
if let aps, (aps[alert_key] as? String) == "新订单" {
if GROUP.isOrderPushNotification(userInfo: userInfo) == true {
var sound : UNNotificationSound?
let juheVehcileName = userInfo[juheVehcileName_key] as? String
let juheVehcileName = userInfo[pushNoti_juheVehcileName_key] as? String
if juheVehcileName?.isEmpty == false {
sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: juheNewOrderAudio_key))
}else{