|
@@ -93,7 +93,7 @@ public class PQEventTrackViewModel: NSObject {
|
|
|
if objectType == .ot_reproduce_clickButton || objectType == .ot_reproduce_collectionBar || objectType == .ot_reproduce_collectionClicButton || objectType == .ot_reproduce_sameSourceButton {
|
|
|
PQEventTrackViewModel.baseReportUpload(businessType: businessType, objectType: objectType, pageSource: pageSource != nil ? pageSource! : (videoData?.pageSource ?? .sp_category), extParams: tempExtParams, remindmsg: "再创作上报")
|
|
|
} else {
|
|
|
- PQEventTrackViewModel.reportVideoPlayUpload(reportLogType: reportLogType, videoId: "\(videoData?.id ?? 0)", headVideoId: headVideoId ?? videoData?.headVideoId, videoIds: (videoIds == nil ? "\(videoData?.id ?? 0)" : videoIds), pageSource: pageSource != nil ? pageSource! : (videoData?.pageSource ?? .sp_category), playId: playId ?? "", recommendId: videoData?.recommendId, recommendLogVO: videoData?.recommendLogVO, abInfoData: videoData?.abInfoData, measureType: videoData?.measureType, measureId: videoData?.measureId, businessType: businessType, shareId: shareId ?? "", extParams: tempExtParams, objectType: objectType)
|
|
|
+ PQEventTrackViewModel.reportVideoPlayUpload(reportLogType: reportLogType, videoId: "\(videoData?.id ?? 0)", headVideoId: headVideoId ?? videoData?.headVideoId, videoIds: (videoIds == nil ? "\(videoData?.id ?? 0)" : videoIds), pageSource: pageSource != nil ? pageSource! : (videoData?.pageSource ?? .sp_category), playId: playId ?? "", recommendId: videoData?.recommendId, recommendLogVO: videoData?.recommendLogVO,flowPool:videoData?.flowPool, abInfoData: videoData?.abInfoData, measureType: videoData?.measureType, measureId: videoData?.measureId, businessType: businessType, shareId: shareId ?? "", extParams: tempExtParams, objectType: objectType)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -113,7 +113,7 @@ public class PQEventTrackViewModel: NSObject {
|
|
|
/// - businessType: 操作类型
|
|
|
/// - targetUid: 视频用户ID
|
|
|
/// - Returns: <#description#>
|
|
|
- public class func reportVideoPlayUpload(reportLogType: reportLogType, videoId: String, headVideoId: String?, videoIds: String?, pageSource: PAGESOURCE, playId: String, recommendId: String?, recommendLogVO: String?, abInfoData: String?, measureType: Int?, measureId: Int?, businessType: businessType?, targetUid: Int = 0, shareId: String = "", extParams: [String: Any]? = nil, objectType: objectType? = nil) {
|
|
|
+ public class func reportVideoPlayUpload(reportLogType: reportLogType, videoId: String, headVideoId: String?, videoIds: String?, pageSource: PAGESOURCE, playId: String, recommendId: String?, recommendLogVO: String?,flowPool:String?, abInfoData: String?, measureType: Int?, measureId: Int?, businessType: businessType?, targetUid: Int = 0, shareId: String = "", extParams: [String: Any]? = nil, objectType: objectType? = nil) {
|
|
|
DispatchQueue.global().async {
|
|
|
var params: [String: Any] = ["videoId": videoId, "pageSource": pageSource.rawValue, "playId": playId, "targetUid": targetUid]
|
|
|
if measureType != nil {
|
|
@@ -128,6 +128,9 @@ public class PQEventTrackViewModel: NSObject {
|
|
|
if recommendLogVO != nil, !(recommendLogVO?.isEmpty ?? true) {
|
|
|
params["recommendLogVO"] = recommendLogVO
|
|
|
}
|
|
|
+ if flowPool != nil, (flowPool?.count ?? 0) > 0 {
|
|
|
+ params["flowPool"] = flowPool
|
|
|
+ }
|
|
|
if abInfoData != nil, !(abInfoData?.isEmpty ?? true) {
|
|
|
params["abInfoData"] = abInfoData
|
|
|
}
|
|
@@ -211,7 +214,7 @@ public class PQEventTrackViewModel: NSObject {
|
|
|
// / - businessType: <#businessType description#>
|
|
|
// / - targetUid: <#targetUid description#>
|
|
|
// / - shareId: <#shareId description#>
|
|
|
- public class func shareReportUpload(isShareVideo: Bool = true, screenType: Int = 1, videoId: String, pageSource: PAGESOURCE, recommendId: String?, recommendLogVO: String?, abInfoData: String?, measureType: Int?, measureId: Int?, businessType: businessType?, targetUid: Int?, shareId: String = "",extParams: [String: Any]? = nil) {
|
|
|
+ public class func shareReportUpload(isShareVideo: Bool = true, screenType: Int = 1, videoId: String, pageSource: PAGESOURCE, recommendId: String?, recommendLogVO: String?,flowPool:String?, abInfoData: String?, measureType: Int?, measureId: Int?, businessType: businessType?, targetUid: Int?, shareId: String = "",extParams: [String: Any]? = nil) {
|
|
|
DispatchQueue.global().async {
|
|
|
var url: String = PQENVUtil.shared.longvideoapi
|
|
|
switch screenType {
|
|
@@ -258,6 +261,9 @@ public class PQEventTrackViewModel: NSObject {
|
|
|
if recommendLogVO != nil, !(recommendLogVO?.isEmpty ?? true) {
|
|
|
params["recommendLogVO"] = recommendLogVO
|
|
|
}
|
|
|
+ if flowPool != nil, (flowPool?.count ?? 0) > 0 {
|
|
|
+ params["flowPool"] = flowPool
|
|
|
+ }
|
|
|
if abInfoData != nil, !(abInfoData?.isEmpty ?? true) {
|
|
|
params["abInfoData"] = abInfoData
|
|
|
}
|