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
69015503
Commit
69015503
authored
May 31, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 视频播放URL包含中文问题
parent
3dc76668
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
YHSearchInfomationVC.swift
...axy/Classes/Modules/Home(首页)/C/YHSearchInfomationVC.swift
+2
-1
YHHomeCollectionViewCell.swift
...Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
+1
-1
YHVideoPlayerVC.swift
galaxy/galaxy/Classes/Tools/VideoPlay/YHVideoPlayerVC.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHSearchInfomationVC.swift
View file @
69015503
...
...
@@ -10,6 +10,7 @@ import UIKit
import
AVFoundation
import
AVKit
class
YHSearchInfomationVC
:
YHBaseViewController
{
static
let
searchInfoHistoryKey
=
"searchInfoHistoryKey"
...
...
@@ -321,7 +322,7 @@ extension YHSearchInfomationVC: UITableViewDelegate, UITableViewDataSource {
if
model
.
type
==
1
{
// 视频
if
!
model
.
media_url
.
isEmpty
,
let
url
=
URL
(
string
:
model
.
media_url
)
{
let
vc
=
YHVideoPlayerVC
()
vc
.
url
=
model
.
media_url
vc
.
url
=
model
.
media_url
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
vc
.
id
=
model
.
id
self
.
navigationController
?
.
pushViewController
(
vc
)
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
View file @
69015503
...
...
@@ -94,7 +94,7 @@ extension YHHomeCollectionViewCell {
if
listModel
.
media_url
.
isEmpty
==
false
,
let
url
=
URL
(
string
:
listModel
.
media_url
)
{
let
vc
=
YHVideoPlayerVC
()
vc
.
url
=
listModel
.
media_url
vc
.
url
=
listModel
.
media_url
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
!
vc
.
id
=
listModel
.
id
vc
.
updateBlock
=
{
[
weak
self
]
item
in
...
...
galaxy/galaxy/Classes/Tools/VideoPlay/YHVideoPlayerVC.swift
View file @
69015503
...
...
@@ -267,7 +267,7 @@ extension YHVideoPlayerVC {
}
let
title
:
String
=
self
.
viewModel
.
mainModel
?
.
title
??
""
let
link
:
String
=
self
.
viewModel
.
mainModel
?
.
media_url
??
""
let
link
:
String
=
self
.
viewModel
.
mainModel
?
.
media_url
.
addingPercentEncoding
(
withAllowedCharacters
:
.
urlQueryAllowed
)
??
""
let
thumbUrl
=
self
.
viewModel
.
mainModel
?
.
img_url
??
""
if
thumbUrl
.
isEmpty
{
YHHUD
.
flash
(
message
:
"分享失败"
)
...
...
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