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
b24badc6
Commit
b24badc6
authored
Jun 07, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理 第一次安装 出现网络提示错误的问题
parent
3f93c422
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+4
-0
YHConfigManager.swift
...y/galaxy/Classes/Modules/Home(首页)/C/YHConfigManager.swift
+6
-0
No files found.
galaxy/galaxy/AppDelegate.swift
View file @
b24badc6
...
@@ -37,6 +37,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
...
@@ -37,6 +37,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
//4.本地用户信息加载
//4.本地用户信息加载
YHLoginManager
.
shared
.
loadLocalUserInfoData
()
YHLoginManager
.
shared
.
loadLocalUserInfoData
()
YHConfigManager
.
shared
.
loadConfigData
()
YHConfigManager
.
shared
.
loadConfigData
()
//5.预加载
//5.预加载
...
@@ -52,6 +53,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
...
@@ -52,6 +53,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, WXApiDelegate {
YHOneKeyLoginManager
.
shared
.
configOneKeyLogin
()
YHOneKeyLoginManager
.
shared
.
configOneKeyLogin
()
YHOSSManager
.
share
.
getOSSID
()
YHOSSManager
.
share
.
getOSSID
()
//1.设置主窗口
//1.设置主窗口
setupRootVC
()
setupRootVC
()
return
true
return
true
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHConfigManager.swift
View file @
b24badc6
...
@@ -74,6 +74,12 @@ class YHConfigManager: NSObject {
...
@@ -74,6 +74,12 @@ class YHConfigManager: NSObject {
extension
YHConfigManager
{
extension
YHConfigManager
{
func
loadConfigData
(
_
callback
:(()
->
())?
=
nil
)
{
func
loadConfigData
(
_
callback
:(()
->
())?
=
nil
)
{
if
YHNetworkStatusManager
.
shared
.
isNetWorkOK
==
false
{
callback
?()
return
}
DispatchQueue
.
global
()
.
async
{
DispatchQueue
.
global
()
.
async
{
self
.
reqVM
.
getHomeConfig
{
flag
,
error
in
self
.
reqVM
.
getHomeConfig
{
flag
,
error
in
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
...
...
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