From f0519625f7ee715a892e4a437667063ff8470586 Mon Sep 17 00:00:00 2001 From: ddisfriend Date: Wed, 25 Jun 2025 13:19:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81=E7=9A=84isshowpop=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OrderScheduling.xcodeproj/project.pbxproj | 18 ++++++++---------- .../Global/GroupData/GroupData.swift | 3 +++ .../NotificationService.swift | 4 ++-- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/OrderScheduling.xcodeproj/project.pbxproj b/OrderScheduling.xcodeproj/project.pbxproj index 14cf542..e507b8d 100644 --- a/OrderScheduling.xcodeproj/project.pbxproj +++ b/OrderScheduling.xcodeproj/project.pbxproj @@ -960,10 +960,14 @@ inputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-OrderScheduling/Pods-OrderScheduling-resources-${CONFIGURATION}-input-files.xcfilelist", ); + inputPaths = ( + ); name = "[CP] Copy Pods Resources"; outputFileListPaths = ( "${PODS_ROOT}/Target Support Files/Pods-OrderScheduling/Pods-OrderScheduling-resources-${CONFIGURATION}-output-files.xcfilelist", ); + outputPaths = ( + ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-OrderScheduling/Pods-OrderScheduling-resources.sh\"\n"; @@ -1383,12 +1387,10 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = OrderScheduling/OrderSchedulingDebug.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CODE_SIGN_STYLE = Manual; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = dwarf; - DEVELOPMENT_TEAM = ""; - "DEVELOPMENT_TEAM[sdk=iphoneos*]" = X9WF5T89LV; + DEVELOPMENT_TEAM = X9WF5T89LV; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "$(inherited)"; FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", @@ -1420,7 +1422,6 @@ PRODUCT_BUNDLE_IDENTIFIER = com.sino.supplier; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "sup dev"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; @@ -1496,11 +1497,9 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = OrderSchedulingNotificationService/OrderSchedulingNotificationService.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - CODE_SIGN_STYLE = Manual; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 8; - DEVELOPMENT_TEAM = ""; - "DEVELOPMENT_TEAM[sdk=iphoneos*]" = X9WF5T89LV; + DEVELOPMENT_TEAM = X9WF5T89LV; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = OrderSchedulingNotificationService/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = OrderSchedulingNotificationService; @@ -1520,7 +1519,6 @@ PRODUCT_BUNDLE_IDENTIFIER = com.sino.supplier.OrderSchedulingNotificationService; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "sino supplier notification service extension"; SKIP_INSTALL = YES; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OBJC_BRIDGING_HEADER = "OrderSchedulingNotificationService/OrderSchedulingNotificationService-Bridging-Header.h"; diff --git a/OrderScheduling/Global/GroupData/GroupData.swift b/OrderScheduling/Global/GroupData/GroupData.swift index bad0e25..fc138bf 100644 --- a/OrderScheduling/Global/GroupData/GroupData.swift +++ b/OrderScheduling/Global/GroupData/GroupData.swift @@ -82,6 +82,9 @@ open class GroupData { if let isShowPop = (userInfo?[pushNoti_isShowPop_key] as? Bool),isShowPop == true { return true } + if let isShowPop = (userInfo?[pushNoti_isShowPop_key] as? String),isShowPop == "true" { + return true + } return false } diff --git a/OrderSchedulingNotificationService/NotificationService.swift b/OrderSchedulingNotificationService/NotificationService.swift index 96bd0b4..4d79656 100644 --- a/OrderSchedulingNotificationService/NotificationService.swift +++ b/OrderSchedulingNotificationService/NotificationService.swift @@ -54,7 +54,7 @@ class NotificationService: UNNotificationServiceExtension { contentHandler(bestAttemptContent) }else{ // 当group中没有订单类型的数据时才写入 - if let isShowPop = (userInfo[pushNoti_isShowPop_key] as? Bool), isShowPop == true { + if GROUP.isShowPopPushNotification(userInfo: userInfo) == true { if let userInfo = GROUP.bestAttemptContentUserInfo,GROUP.isOrderPushNotification(userInfo: userInfo) == true { }else{ GROUP.setBestAttemptContentUserInfo(bestAttemptContentUserInfo: userInfo) @@ -101,7 +101,7 @@ class NotificationService: UNNotificationServiceExtension { contentHandler(bestAttemptContent) }else{ // 当group中没有订单类型的数据时才写入 - if let isShowPop = (userInfo[pushNoti_isShowPop_key] as? Bool), isShowPop == true { + if GROUP.isShowPopPushNotification(userInfo: userInfo) == true{ if let userInfo = GROUP.bestAttemptContentUserInfo,GROUP.isOrderPushNotification(userInfo: userInfo) == true { }else{ GROUP.setBestAttemptContentUserInfo(bestAttemptContentUserInfo: userInfo)