Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
47cfd711
Commit
47cfd711
authored
Dec 24, 2024
by
DavidHuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播分享回app
parent
f6fb4fa7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
YHLivePlayerViewController.swift
.../LivestreamSales(直播销售)/C/YHLivePlayerViewController.swift
+3
-5
YHShareManager.swift
galaxy/galaxy/Classes/Tools/Analytics/YHShareManager.swift
+3
-3
No files found.
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHLivePlayerViewController.swift
View file @
47cfd711
...
@@ -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
)
}
}
...
...
galaxy/galaxy/Classes/Tools/Analytics/YHShareManager.swift
View file @
47cfd711
...
@@ -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
+
"="
+
value
2
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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment