Jelajahi Sumber

修改埋点

jsonwang 3 tahun lalu
induk
melakukan
a6edd758ca

+ 3 - 1
Introduce/Record/INIntroduceController.swift

@@ -72,7 +72,9 @@ class INIntroduceController: BFBaseViewController {
         }
         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
             // 点击字幕按钮上报

+ 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) {