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
d4293fc1
Commit
d4293fc1
authored
May 30, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 替换全局登录
parent
ce56195a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
35 deletions
+13
-35
YHHKEventViewController.swift
.../Classes/Modules/Home(首页)/C/YHHKEventViewController.swift
+1
-3
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+1
-3
YHHomeWebViewController.swift
.../Classes/Modules/Home(首页)/C/YHHomeWebViewController.swift
+3
-9
YHHomeCollectionViewCell.swift
...Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
+1
-3
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+4
-8
YHVideoPlayerVC.swift
galaxy/galaxy/Classes/Tools/VideoPlay/YHVideoPlayerVC.swift
+3
-9
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHKEventViewController.swift
View file @
d4293fc1
...
...
@@ -140,9 +140,7 @@ extension YHHKEventViewController {
YHShareManager
.
shared
.
sendLinkContent
(
"一图看清香港办事"
,
""
,
UIImage
(
named
:
"AppIcon"
)
??
UIImage
(),
link
:
urlString
)
}
}
else
{
let
vc
=
UINavigationController
(
rootVC
:
YHPhoneLoginWithVideoBkgViewController
())
vc
.
modalPresentationStyle
=
.
custom
self
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
YHLoginMethodManager
.
shared
.
autoLogin
()
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
d4293fc1
...
...
@@ -255,9 +255,7 @@ extension YHHomePageViewController : UITabBarControllerDelegate {
if
YHLoginManager
.
shared
.
isLogin
()
{
return
true
}
else
{
let
vc
=
UINavigationController
(
rootVC
:
YHPhoneLoginWithVideoBkgViewController
())
vc
.
modalPresentationStyle
=
.
custom
UIViewController
.
current
?
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
YHLoginMethodManager
.
shared
.
autoLogin
()
YHLoginManager
.
shared
.
loginSuccessActionBlock
=
{[
weak
self
]
in
guard
self
!=
nil
else
{
return
}
tabBarController
.
selectedIndex
=
index
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomeWebViewController.swift
View file @
d4293fc1
...
...
@@ -80,9 +80,7 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
view
.
likeBlock
=
{
[
weak
self
]
flag
in
guard
let
self
=
self
else
{
return
}
if
YHLoginManager
.
shared
.
isLogin
()
==
false
{
let
vc
=
UINavigationController
(
rootVC
:
YHPhoneLoginWithVideoBkgViewController
())
vc
.
modalPresentationStyle
=
.
custom
self
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
YHLoginMethodManager
.
shared
.
autoLogin
()
return
}
if
flag
{
...
...
@@ -111,9 +109,7 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
view
.
starBlock
=
{
[
weak
self
]
flag
in
guard
let
self
=
self
else
{
return
}
if
YHLoginManager
.
shared
.
isLogin
()
==
false
{
let
vc
=
UINavigationController
(
rootVC
:
YHPhoneLoginWithVideoBkgViewController
())
vc
.
modalPresentationStyle
=
.
custom
self
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
YHLoginMethodManager
.
shared
.
autoLogin
()
return
}
if
flag
{
...
...
@@ -244,9 +240,7 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
task
.
resume
()
}
}
else
{
let
vc
=
UINavigationController
(
rootVC
:
YHPhoneLoginWithVideoBkgViewController
())
vc
.
modalPresentationStyle
=
.
custom
self
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
YHLoginMethodManager
.
shared
.
autoLogin
()
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeCollectionViewCell.swift
View file @
d4293fc1
...
...
@@ -247,9 +247,7 @@ extension YHHomeCollectionViewCell {
}
}
}
else
{
let
vc
=
UINavigationController
(
rootVC
:
YHPhoneLoginWithVideoBkgViewController
())
vc
.
modalPresentationStyle
=
.
custom
self
.
parentViewController
?
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
YHLoginMethodManager
.
shared
.
autoLogin
()
}
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
d4293fc1
...
...
@@ -99,8 +99,8 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
view
.
avatarClickBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
//
if !checkLogin() { return }
YHLoginMethodManager
.
shared
.
autoLogin
()
if
!
checkLogin
()
{
return
}
}
view
.
nickNameClickBlock
=
{
[
weak
self
]
in
...
...
@@ -155,9 +155,7 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
func
checkLogin
()
->
Bool
{
if
YHLoginManager
.
shared
.
isLogin
()
==
false
{
let
vc
=
UINavigationController
(
rootVC
:
YHPhoneLoginWithVideoBkgViewController
())
vc
.
modalPresentationStyle
=
.
custom
self
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
YHLoginMethodManager
.
shared
.
autoLogin
()
return
false
}
return
true
...
...
@@ -277,9 +275,7 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
//#endif
if
!
checkLogin
()
{
let
vc
=
UINavigationController
(
rootVC
:
YHPhoneLoginWithVideoBkgViewController
())
vc
.
modalPresentationStyle
=
.
custom
self
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
YHLoginMethodManager
.
shared
.
autoLogin
()
return
}
...
...
galaxy/galaxy/Classes/Tools/VideoPlay/YHVideoPlayerVC.swift
View file @
d4293fc1
...
...
@@ -139,9 +139,7 @@ class YHVideoPlayerVC: YHBaseViewController {
guard
let
self
=
self
else
{
return
}
if
YHLoginManager
.
shared
.
isLogin
()
==
false
{
self
.
player
.
pause
()
let
vc
=
UINavigationController
(
rootVC
:
YHPhoneLoginWithVideoBkgViewController
())
vc
.
modalPresentationStyle
=
.
custom
self
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
YHLoginMethodManager
.
shared
.
autoLogin
()
return
}
if
flag
{
...
...
@@ -171,9 +169,7 @@ class YHVideoPlayerVC: YHBaseViewController {
guard
let
self
=
self
else
{
return
}
if
YHLoginManager
.
shared
.
isLogin
()
==
false
{
self
.
player
.
pause
()
let
vc
=
UINavigationController
(
rootVC
:
YHPhoneLoginWithVideoBkgViewController
())
vc
.
modalPresentationStyle
=
.
custom
self
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
YHLoginMethodManager
.
shared
.
autoLogin
()
return
}
if
flag
{
...
...
@@ -266,9 +262,7 @@ extension YHVideoPlayerVC {
if
YHLoginManager
.
shared
.
isLogin
()
==
false
{
self
.
player
.
pause
()
let
vc
=
UINavigationController
(
rootVC
:
YHPhoneLoginWithVideoBkgViewController
())
vc
.
modalPresentationStyle
=
.
custom
self
.
navigationController
?
.
present
(
vc
,
animated
:
true
)
YHLoginMethodManager
.
shared
.
autoLogin
()
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