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
571683a1
Commit
571683a1
authored
Feb 26, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播分享deeplink相关
parent
af338af9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
YHLivePlayerViewController.swift
.../LivestreamSales(直播销售)/C/YHLivePlayerViewController.swift
+7
-4
No files found.
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHLivePlayerViewController.swift
View file @
571683a1
...
...
@@ -530,7 +530,12 @@ class YHLivePlayerViewController: YHBasePlayerViewController {
}
DispatchQueue
.
global
()
.
async
{
YHShareManager
.
shared
.
createMutilShareShortUrl
(
type
:
1
,
param
:
[
"LiveID"
:
String
(
self
.
liveId
)])
{
shortUrl
,
error
in
var
param
:
[
String
:
String
]
=
[
"LiveID"
:
String
(
self
.
liveId
)]
if
let
userId
=
YHLoginManager
.
shared
.
userModel
?
.
id
,
userId
.
count
>
0
{
param
[
"fromUserId"
]
=
userId
param
[
"sourceType"
]
=
"1"
}
YHShareManager
.
shared
.
createMutilShareShortUrl
(
type
:
1
,
param
:
param
)
{
shortUrl
,
error
in
if
let
url
=
shortUrl
{
let
tmpT
=
url
.
base64Encoded
??
""
//对deepLink使用 base64编码
var
oldUrl
=
liveModel
.
live_h5_url
...
...
@@ -539,9 +544,7 @@ class YHLivePlayerViewController: YHBasePlayerViewController {
}
else
{
oldUrl
=
oldUrl
+
"?appDeepLink=
\(
tmpT
)
"
}
if
let
userId
=
YHLoginManager
.
shared
.
userModel
?
.
id
,
userId
.
count
>
0
{
oldUrl
+=
"&sourceType=1&fromUserId=
\(
userId
)
"
}
YHShareAlertView
.
show
(
image
:
liveModel
.
live_image
,
title
:
"@"
+
liveModel
.
account
,
subMessage
:
liveModel
.
live_title
,
linkUrl
:
oldUrl
,
isLive
:
true
,
fromAiSale
:
true
)
return
}
...
...
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