更新注释

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

@@ -3907,8 +3907,8 @@
filePath = "OrderSchedulingNotificationService/NotificationService.swift" filePath = "OrderSchedulingNotificationService/NotificationService.swift"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "64" startingLineNumber = "65"
endingLineNumber = "64" endingLineNumber = "65"
landmarkName = "didReceive(_:withContentHandler:)" landmarkName = "didReceive(_:withContentHandler:)"
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>

View File

@@ -36,7 +36,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
func sceneDidBecomeActive(_ scene: UIScene) { func sceneDidBecomeActive(_ scene: UIScene) {
if USER.isLogin == true,appIsAlive == true { if USER.isLogin == true,appIsAlive == true {
// appGROUPappapp died // appGROUPappapp
TOOL.dealWithOrderPushNotification { userInfo in TOOL.dealWithOrderPushNotification { userInfo in
TOOL.playAlertWith(userInfo: userInfo) TOOL.playAlertWith(userInfo: userInfo)
} }

View File

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