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
82893b8d
Commit
82893b8d
authored
Dec 25, 2024
by
DavidHuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改一处 bug
parent
8f36a770
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+1
-1
YHPlayerManager.swift
...ses/Modules/LivestreamSales(直播销售)/C/YHPlayerManager.swift
+3
-0
YHShareAlertView.swift
...es/Modules/LivestreamSales(直播销售)/V/YHShareAlertView.swift
+8
-0
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+3
-0
No files found.
galaxy/galaxy/AppDelegate.swift
View file @
82893b8d
...
@@ -84,7 +84,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
...
@@ -84,7 +84,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
if
let
type
=
arrItems
[
"type"
]
as?
String
,
let
iType
=
Int
(
type
)
{
if
let
type
=
arrItems
[
"type"
]
as?
String
,
let
iType
=
Int
(
type
)
{
if
iType
==
1
{
if
iType
==
1
{
//跳转
//跳转
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.5
)
{
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.
2
5
)
{
if
!
YHLoginManager
.
shared
.
isLogin
()
{
if
!
YHLoginManager
.
shared
.
isLogin
()
{
printLog
(
"需要登录"
)
printLog
(
"需要登录"
)
return
return
...
...
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHPlayerManager.swift
View file @
82893b8d
...
@@ -366,6 +366,9 @@ class YHPlayerManager: NSObject {
...
@@ -366,6 +366,9 @@ class YHPlayerManager: NSObject {
}
}
func
enterLive
(
from
sourceView
:
UIView
?,
playbackInfo
:
PlaybackInfo
)
{
func
enterLive
(
from
sourceView
:
UIView
?,
playbackInfo
:
PlaybackInfo
)
{
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
closeShareUIInLiveRoomNotifiction
,
object
:
nil
)
let
playerType
=
determinePlayerType
(
for
:
.
fullscreen
)
let
playerType
=
determinePlayerType
(
for
:
.
fullscreen
)
var
updatedInfo
=
playbackInfo
var
updatedInfo
=
playbackInfo
updatedInfo
.
scene
=
.
fullscreen
updatedInfo
.
scene
=
.
fullscreen
...
...
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/V/YHShareAlertView.swift
View file @
82893b8d
...
@@ -76,7 +76,15 @@ class YHShareAlertView: UIView {
...
@@ -76,7 +76,15 @@ class YHShareAlertView: UIView {
fatalError
(
"init(coder:) has not been implemented"
)
fatalError
(
"init(coder:) has not been implemented"
)
}
}
deinit
{
NotificationCenter
.
default
.
removeObserver
(
self
)
}
func
setView
()
{
func
setView
()
{
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
dismiss
)
,
name
:
YhConstant
.
YhNotification
.
closeShareUIInLiveRoomNotifiction
,
object
:
nil
)
backgroundColor
=
UIColor
(
hex
:
0x0000
,
alpha
:
0.5
)
backgroundColor
=
UIColor
(
hex
:
0x0000
,
alpha
:
0.5
)
centerView
=
{
centerView
=
{
let
view
=
UIView
()
let
view
=
UIView
()
...
...
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
82893b8d
...
@@ -402,5 +402,8 @@ extension YhConstant {
...
@@ -402,5 +402,8 @@ extension YhConstant {
public
static
let
backToHomeNotification
=
Notification
.
Name
(
rawValue
:
"com.yinhe.backToHomeNotification"
)
public
static
let
backToHomeNotification
=
Notification
.
Name
(
rawValue
:
"com.yinhe.backToHomeNotification"
)
// 切换到AI对话tab
// 切换到AI对话tab
public
static
let
didSwitchToAIChatNotification
=
Notification
.
Name
(
rawValue
:
"com.yinhe.switchToAIChat"
)
public
static
let
didSwitchToAIChatNotification
=
Notification
.
Name
(
rawValue
:
"com.yinhe.switchToAIChat"
)
//关闭直播间弹出的分享界面
public
static
let
closeShareUIInLiveRoomNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.app.close.share.ui"
)
}
}
}
}
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