Selaa lähdekoodia

1.7(5)打包上架

100Years 3 viikkoa sitten
vanhempi
commit
3a70cc265c

+ 2 - 2
AIRingtone.xcodeproj/project.pbxproj

@@ -1323,7 +1323,7 @@
 				ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
 				ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
 				CLANG_ENABLE_MODULES = YES;
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_STYLE = Automatic;
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 3;
+				CURRENT_PROJECT_VERSION = 5;
 				DEVELOPMENT_TEAM = 65UD255J84;
 				DEVELOPMENT_TEAM = 65UD255J84;
 				GENERATE_INFOPLIST_FILE = YES;
 				GENERATE_INFOPLIST_FILE = YES;
 				INFOPLIST_FILE = AIRingtone/Info.plist;
 				INFOPLIST_FILE = AIRingtone/Info.plist;
@@ -1365,7 +1365,7 @@
 				ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
 				ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
 				CLANG_ENABLE_MODULES = YES;
 				CLANG_ENABLE_MODULES = YES;
 				CODE_SIGN_STYLE = Automatic;
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 3;
+				CURRENT_PROJECT_VERSION = 5;
 				DEVELOPMENT_TEAM = 65UD255J84;
 				DEVELOPMENT_TEAM = 65UD255J84;
 				GENERATE_INFOPLIST_FILE = YES;
 				GENERATE_INFOPLIST_FILE = YES;
 				INFOPLIST_FILE = AIRingtone/Info.plist;
 				INFOPLIST_FILE = AIRingtone/Info.plist;

+ 10 - 3
AIRingtone/Common/Tool/TSBandRingTool/TSBandRingTool.swift

@@ -122,7 +122,7 @@ class TSBandRingTool:NSObject {
     
     
     func shareRing(fileUrl: URL) {
     func shareRing(fileUrl: URL) {
         DispatchQueue.main.async {
         DispatchQueue.main.async {
-//            self.showTutorialVideo()
+            self.showTutorialVideo()
             
             
             let vc = UIActivityViewController(activityItems: [fileUrl], applicationActivities: nil)
             let vc = UIActivityViewController(activityItems: [fileUrl], applicationActivities: nil)
             // 排除不需要的活动类型
             // 排除不需要的活动类型
@@ -144,10 +144,17 @@ class TSBandRingTool:NSObject {
 //                .openInIBooks
 //                .openInIBooks
 //            ]
 //            ]
             self.targetVC?.present(vc, animated: true, completion: {
             self.targetVC?.present(vc, animated: true, completion: {
-                self.showTutorialVideo()
                 self.tryStartPictureInPicture()
                 self.tryStartPictureInPicture()
             })
             })
             
             
+            // 延迟检查是否真正弹出
+            DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
+                if self.targetVC?.presentedViewController != vc {
+                    dePrint("⚠️ present 失败:系统未正确响应")
+                    // 这里可以触发回调或通知
+                    self.playContentView.removeFromSuperview()
+                }
+            }
         }
         }
     }
     }
     
     
@@ -189,7 +196,7 @@ extension TSBandRingTool : AVPlayerViewControllerDelegate, AVPictureInPictureCon
             tutorialPlayer?.replaceCurrentItem(with: playerItem)
             tutorialPlayer?.replaceCurrentItem(with: playerItem)
         }
         }
         tutorialPlayer?.allowsExternalPlayback = true
         tutorialPlayer?.allowsExternalPlayback = true
-//        playContentView.backgroundColor = .red
+//        playContentView.backgroundColor = .black.withAlphaComponent(0.1)
         targetVC?.view.addSubview(playContentView)
         targetVC?.view.addSubview(playContentView)
         
         
         let layer = AVPlayerLayer(player: tutorialPlayer)
         let layer = AVPlayerLayer(player: tutorialPlayer)