소스 검색

1.启动页延长 1s
2.Cute更改为免费

100Years 1 개월 전
부모
커밋
c5cd3b7322
2개의 변경된 파일18개의 추가작업 그리고 8개의 파일을 삭제
  1. 17 7
      AIEmoji/Business/LaunchVC/TSLaunchVC.swift
  2. 1 1
      AIEmoji/Res/photo_to_photo_style.json

+ 17 - 7
AIEmoji/Business/LaunchVC/TSLaunchVC.swift

@@ -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() {

+ 1 - 1
AIEmoji/Res/photo_to_photo_style.json

@@ -24,7 +24,7 @@
         "prompt":"把图片变成disney风格",
         "prompt":"把图片变成disney风格",
         "specialStyle":0,
         "specialStyle":0,
         "styleId": "ImageToImage-21",
         "styleId": "ImageToImage-21",
-        "isVip": true
+        "isVip": false
     },
     },
     {
     {
         "imageName": "ptp_style_7",
         "imageName": "ptp_style_7",