瀏覽代碼

Merge branch 'master' of https://git.yishihui.com/iOS/Introduce

wenweiwei 3 年之前
父節點
當前提交
943d9991cf
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 3 1
      Introduce/Record/INIntroduceController.swift
  2. 1 1
      Introduce/Record/INVideoExportController.swift

+ 3 - 1
Introduce/Record/INIntroduceController.swift

@@ -72,7 +72,9 @@ class INIntroduceController: BFBaseViewController {
         }
         }
         recordScreenVC.recordRndHandle = {model in
         recordScreenVC.recordRndHandle = {model in
             // 录音完成时上报
             // 录音完成时上报
-            BFEventTrackAdaptor.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_speekButton, pageSource: .sp_speekPage,extParams: ["duration":Int((Double(model?.duration ?? "0") ?? 0) * 1000)],commonParams: commonParams())
+            let assert = AVURLAsset(url: URL(fileURLWithPath:model?.wavFilePath ?? ""))
+        
+            BFEventTrackAdaptor.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_speekButton, pageSource: .sp_speekPage,extParams: ["duration":Int((assert.duration.seconds) * 1000)],commonParams: commonParams())
         }
         }
         recordScreenVC.subTitleBtnClickHandle = { isOn in
         recordScreenVC.subTitleBtnClickHandle = { isOn in
             // 点击字幕按钮上报
             // 点击字幕按钮上报

+ 1 - 1
Introduce/Record/INVideoExportController.swift

@@ -590,7 +590,7 @@ class INVideoExportController: BFBaseViewController {
             }
             }
         }
         }
         // 点击保存至相册上报
         // 点击保存至相册上报
-        BFEventTrackAdaptor.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_saveToAblum, pageSource: .sp_composePage, extParams: saveAllBtn.isSelected ? ["saveAll": true] : ["saveRecord": true], commonParams: commonParams())
+        BFEventTrackAdaptor.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_saveToAblum, pageSource: .sp_composePage, extParams: saveAllBtn.isSelected ? ["saveAll": "保留全部"] : ["saveRecord": "保留录音部分"], commonParams: commonParams())
     }
     }
 
 
     @objc func saveAllAction(btn: UIButton) {
     @objc func saveAllAction(btn: UIButton) {