|
@@ -156,7 +156,7 @@ public class PQSingletoWXApiUtil: NSObject {
|
|
|
targetPagePath = "user-videos"
|
|
|
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)").addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
|
|
|
+ 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=\(Int64(Date().timeIntervalSince1970 * 1000))").addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
|
|
|
["/", "=", "?", "&"].forEach { char in
|
|
|
let custom = CharacterSet(charactersIn: char).inverted
|
|
|
params = params?.addingPercentEncoding(withAllowedCharacters: custom) ?? ""
|