瀏覽代碼

有录制再合成

harry 3 年之前
父節點
當前提交
7eb5c61ae8
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      Introduce/Record/INIntroduceController.swift

+ 5 - 4
Introduce/Record/INIntroduceController.swift

@@ -118,10 +118,11 @@ class INIntroduceController: BFBaseViewController {
     }
     }
 
 
     @objc func exportAction() {
     @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
             return
         }
         }