update
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user