Parcourir la source

有录制再合成

harry il y a 3 ans
Parent
commit
7eb5c61ae8
1 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. 5 4
      Introduce/Record/INIntroduceController.swift

+ 5 - 4
Introduce/Record/INIntroduceController.swift

@@ -118,10 +118,11 @@ class INIntroduceController: BFBaseViewController {
     }
 
     @objc func exportAction() {
-        if recordScreenVC.itemModels.count == 1
-            && recordScreenVC.itemModels[0].mediaType == .IMAGE
-            && recordScreenVC.itemModels[0].voiceStickers.count == 0{
-            cShowHUB(superView: nil, msg: "开局一张图也要编些话吧:)")
+        let count = recordScreenVC.itemModels.reduce(0, { partialResult, model in
+            model.voiceStickers.count + partialResult
+        })
+        if count == 0 {
+            cShowHUB(superView: nil, msg: "需要添加录制才能合成")
             return
         }