更新注释
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user