Commit 80cadb19 authored by Steven杜宇's avatar Steven杜宇

Merge branch 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into develop

parents 6b2e7dd5 ca103504
...@@ -443,16 +443,14 @@ class YHLivePlayerViewController: YHBasePlayerViewController { ...@@ -443,16 +443,14 @@ class YHLivePlayerViewController: YHBasePlayerViewController {
DispatchQueue.global().async { DispatchQueue.global().async {
if let url = YHShareManager.shared.createMutilShareUrl(type: 1, param: ["LiveID":String(self.liveId)]) { if let url = YHShareManager.shared.createMutilShareUrl(type: 1, param: ["LiveID":String(self.liveId)]) {
printLog(url) //for test hjl let tmpT = url.base64Encoded ?? ""//对deepLink使用 base64编码
var oldUrl = liveModel.live_h5_url var oldUrl = liveModel.live_h5_url
if oldUrl.contains("?") { if oldUrl.contains("?") {
oldUrl = oldUrl + "&uid=\(YHLoginManager.shared.userModel?.id ?? "0")" + "&fromPlatform=iOS" + "&appDeepLink=\(url)" oldUrl = oldUrl + "&uid=\(YHLoginManager.shared.userModel?.id ?? "0")" + "&fromPlatform=iOS" + "&appDeepLink=\(tmpT)"
} else { } else {
oldUrl = oldUrl + "?uid=\(YHLoginManager.shared.userModel?.id ?? "0")" + "&fromPlatform=iOS" + "&appDeepLink=\(url)" oldUrl = oldUrl + "?uid=\(YHLoginManager.shared.userModel?.id ?? "0")" + "&fromPlatform=iOS" + "&appDeepLink=\(tmpT)"
} }
printLog(oldUrl)
DispatchQueue.main.async { DispatchQueue.main.async {
YHShareAlertView.show(image: liveModel.live_image, title: "@" + liveModel.account, subMessage: liveModel.live_title, linkUrl: oldUrl, isLive: true, fromAiSale: true) YHShareAlertView.show(image: liveModel.live_image, title: "@" + liveModel.account, subMessage: liveModel.live_title, linkUrl: oldUrl, isLive: true, fromAiSale: true)
} }
......
...@@ -291,8 +291,8 @@ extension YHShareManager { ...@@ -291,8 +291,8 @@ extension YHShareManager {
let arrKey = param.keys let arrKey = param.keys
for (_,item) in arrKey.enumerated() { for (_,item) in arrKey.enumerated() {
if let value = param[item],!value.isEmpty,let value2 = YHURLEncodeHelper.urlEncodedString(value) { if let value = param[item],!value.isEmpty {
linkUrl = linkUrl + "&" + item + "=" + value2 linkUrl = linkUrl + "&" + item + "=" + value
} }
} }
...@@ -300,7 +300,7 @@ extension YHShareManager { ...@@ -300,7 +300,7 @@ extension YHShareManager {
components.deepLink = linkUrl components.deepLink = linkUrl
components.iosBundleId = Bundle.main.bundleIdentifier components.iosBundleId = Bundle.main.bundleIdentifier
components.androidDeepLink = linkUrl//安卓平台调用不过 所以需要单独写出来 components.androidDeepLink = linkUrl //安卓平台调用不过 所以需要单独写出来
components.androidPackageName = "com.galaxy.galaxyandroid" components.androidPackageName = "com.galaxy.galaxyandroid"
let url = components.buildLongLink() let url = components.buildLongLink()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment