Browse Source

单图无录音逻辑

harry 3 years ago
parent
commit
6b3e9cf281
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Introduce/Record/INIntroduceController.swift

+ 7 - 0
Introduce/Record/INIntroduceController.swift

@@ -118,6 +118,13 @@ 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: "开局一张图也要编些话吧:)")
+            return
+        }
+        
         recordScreenVC.backBtnClick()
 
         let controller = INVideoExportController()