|
@@ -125,7 +125,7 @@ public class BFBaseEventTrack: NSObject {
|
|
|
/// - Returns: <#description#>
|
|
|
public class func bf_videoReportUpload(url: String, videoId: String?, headVideoId: String?, playId: String?, recommendId: String?, recommendLogVO: String?, flowPool: String?, abInfoData: String?, measureType: Int?, measureId: Int?, targetUid: Int = 0, businessType: String?, objectType: String?, pageSource: String?, eventData: [String: Any]? = nil, extParams: [String: Any]? = nil, commonParams: [String: Any]? = nil) {
|
|
|
DispatchQueue.global().async {
|
|
|
- var params: [String: Any] = ["videoId": videoId ?? "", "pageSource": pageSource ?? "", "playId": playId ?? "", "targetUid": targetUid]
|
|
|
+ var params: [String: Any] = ["videoId": Int64(videoId ?? "") ?? 0, "pageSource": pageSource ?? "", "playId": playId ?? "", "targetUid": targetUid]
|
|
|
if measureType != nil {
|
|
|
params["measureType"] = measureType
|
|
|
}
|
|
@@ -159,10 +159,10 @@ public class BFBaseEventTrack: NSObject {
|
|
|
// extParams
|
|
|
var tempExtParams: [String: Any] = extParams ?? [:]
|
|
|
if headVideoId != nil, (headVideoId?.count ?? 0) > 0 {
|
|
|
- tempExtParams["headVideoId"] = (headVideoId ?? "0")
|
|
|
+ tempExtParams["headVideoId"] = Int64(headVideoId ?? "0") ?? 0
|
|
|
}
|
|
|
if videoId != nil, (videoId?.count ?? 0) > 0 {
|
|
|
- tempExtParams["videoId"] = videoId ?? ""
|
|
|
+ tempExtParams["videoId"] = Int64(videoId ?? "") ?? 0
|
|
|
}
|
|
|
if tempEventData.keys.count > 0 {
|
|
|
params["eventData"] = bf_dictionaryToJsonString(tempEventData)
|