Prechádzať zdrojové kódy

卡点视频分享路径修改

Harry 1 rok pred
rodič
commit
fa2de1d877

+ 8 - 7
BFStuckPointKit/Classes/BFUtils/PQThirdPlatformUtil.swift

@@ -147,15 +147,16 @@ public class PQSingletoWXApiUtil: NSObject {
                     var homePagePath: String = ""
                     var targetPagePath: String = ""
                     var isRhythmVideo = 0
-                    if type == 3 {
-                        homePagePath = "pages/post/post"
-                        targetPagePath = "package-point/show/show"
-                        isRhythmVideo = 1
-                    } else {
+                    // 下线合成服务,卡点视频分享走分享页逻辑
+//                    if type == 3 {
+//                        homePagePath = "pages/post/post"
+//                        targetPagePath = "package-point/show/show"
+//                        isRhythmVideo = 1
+//                    } else {
                         homePagePath = "pages/category"
                         targetPagePath = "user-videos"
-                        isRhythmVideo = 0
-                    }
+//                        isRhythmVideo = 0
+//                    }
                     var params = (targetPagePath + "?id=\(videoId)&tp=share&rootPageSource=\(pageSource.rawValue)&shareDepth=1&rootLaunchShareId=\(shareId)&parentShareId=\(shareId)&shareId=\(shareId)&shareAppType=\(BFConfig.shared.appType)&mid=\(getMachineCode())&su=\(BFLoginUserInfo.shared.uid)&isRhythmVideo=\(isRhythmVideo)&rootPageTimestamp=\(rootPageTimestamp ?? Int64(Date().timeIntervalSince1970 * 1000))&sourceId=\(sourceId ?? "")&rootSourceId=\(rootSourceId ?? "")").addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
                     ["/", "=", "?", "&"].forEach { char in
                         let custom = CharacterSet(charactersIn: char).inverted