|
@@ -25,19 +25,29 @@ class TSLaunchVC: UIViewController {
|
|
setupLaunchScreenView()
|
|
setupLaunchScreenView()
|
|
addNotifiy()
|
|
addNotifiy()
|
|
|
|
|
|
|
|
+// if AppDelegate.isFirstInstallApp() {//首次安装需要等待网络权限弹窗
|
|
|
|
+// startTimer()
|
|
|
|
+// }else if TSDBHistory.isMigrationUserDefaultsHistory{ //迁移UserDefaultsHistory数据到数据库
|
|
|
|
+// TSDBHistory.migrationUserDefaultsHistory {
|
|
|
|
+// self.enterApp()
|
|
|
|
+// }
|
|
|
|
+// }else {
|
|
|
|
+// self.enterApp()
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+
|
|
if AppDelegate.isFirstInstallApp() {//首次安装需要等待网络权限弹窗
|
|
if AppDelegate.isFirstInstallApp() {//首次安装需要等待网络权限弹窗
|
|
startTimer()
|
|
startTimer()
|
|
}else if TSDBHistory.isMigrationUserDefaultsHistory{ //迁移UserDefaultsHistory数据到数据库
|
|
}else if TSDBHistory.isMigrationUserDefaultsHistory{ //迁移UserDefaultsHistory数据到数据库
|
|
- TSDBHistory.migrationUserDefaultsHistory {
|
|
|
|
- self.enterApp()
|
|
|
|
|
|
+ TSDBHistory.migrationUserDefaultsHistory { [weak self] in
|
|
|
|
+ guard let self = self else { return }
|
|
|
|
+ remindTimeInterval = 1.0
|
|
|
|
+ startTimer()
|
|
}
|
|
}
|
|
}else {
|
|
}else {
|
|
- self.enterApp()
|
|
|
|
|
|
+ remindTimeInterval = 1.0
|
|
|
|
+ startTimer()
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
-// startTimer()
|
|
|
|
-// addNotifiy()
|
|
|
|
}
|
|
}
|
|
|
|
|
|
func addNotifiy() {
|
|
func addNotifiy() {
|