|
@@ -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
|