From 9f3242cb26577b17e658b70f87d970b7b55ef6bf Mon Sep 17 00:00:00 2001 From: zeng Date: Mon, 9 Jun 2025 15:27:50 +0800 Subject: [PATCH] 1.0.7 --- MoviaBox.xcodeproj/project.pbxproj | 4 ++-- MoviaBox/AppDelegate/AppDelegate+OpenApp.swift | 2 +- MoviaBox/AppDelegate/SceneDelegate.swift | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/MoviaBox.xcodeproj/project.pbxproj b/MoviaBox.xcodeproj/project.pbxproj index d600b4c..1d28052 100644 --- a/MoviaBox.xcodeproj/project.pbxproj +++ b/MoviaBox.xcodeproj/project.pbxproj @@ -257,7 +257,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.6; + MARKETING_VERSION = 1.0.7; PRODUCT_BUNDLE_IDENTIFIER = com.thimratv.app; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -303,7 +303,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.6; + MARKETING_VERSION = 1.0.7; PRODUCT_BUNDLE_IDENTIFIER = com.thimratv.app; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/MoviaBox/AppDelegate/AppDelegate+OpenApp.swift b/MoviaBox/AppDelegate/AppDelegate+OpenApp.swift index ce1f19d..e0c87ce 100644 --- a/MoviaBox/AppDelegate/AppDelegate+OpenApp.swift +++ b/MoviaBox/AppDelegate/AppDelegate+OpenApp.swift @@ -52,7 +52,7 @@ extension SceneDelegate { var statUrlStr: String? var data: [String : Any]? - if let pasteStr = UIPasteboard.general.string { + if let pasteStr = UIPasteboard.general.string, pasteStr.contains("movia") { UIPasteboard.general.string = nil let tempArr = pasteStr.components(separatedBy: "?") let query = tempArr.last diff --git a/MoviaBox/AppDelegate/SceneDelegate.swift b/MoviaBox/AppDelegate/SceneDelegate.swift index 821fe33..695d48c 100644 --- a/MoviaBox/AppDelegate/SceneDelegate.swift +++ b/MoviaBox/AppDelegate/SceneDelegate.swift @@ -46,7 +46,6 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { func sceneDidBecomeActive(_ scene: UIScene) { // Called when the scene has moved from an inactive state to an active state. // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. - handleOpenAppMessage(webpageURL: nil) SPStatAPI.requestEnterApp() handleOnLine() } @@ -61,9 +60,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate { func sceneWillEnterForeground(_ scene: UIScene) { // Called as the scene transitions from the background to the foreground. // Use this method to undo the changes made on entering the background. - - - + handleOpenAppMessage(webpageURL: nil) } func sceneDidEnterBackground(_ scene: UIScene) {