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
3b814908
Commit
3b814908
authored
Apr 19, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 登出处理
parent
6caa58e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
YHMySettingViewController.swift
...lasses/Modules/Mine(我的)/C/YHMySettingViewController.swift
+7
-0
YHNetRequest.swift
galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
+8
-5
No files found.
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMySettingViewController.swift
View file @
3b814908
...
@@ -129,6 +129,13 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
...
@@ -129,6 +129,13 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
}
}
return
return
}
}
var
msg
=
"退出失败"
if
let
error
=
error
,
!
error
.
errorMsg
.
isEmpty
{
msg
=
error
.
errorMsg
}
YHHUD
.
flash
(
message
:
msg
)
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHNetRequest.swift
View file @
3b814908
...
@@ -288,11 +288,14 @@ class YHNetRequest: NSObject {
...
@@ -288,11 +288,14 @@ class YHNetRequest: NSObject {
printLog
(
"服务器返回数据是:
\(
obj
)
"
)
printLog
(
"服务器返回数据是:
\(
obj
)
"
)
#endif
#endif
if
obj
.
code
==
10010
{
if
obj
.
code
==
10010
{
// 跳转登录
DispatchQueue
.
main
.
async
{
YHLoginManager
.
shared
.
clearUserInfo
()
YHLoginManager
.
shared
.
clearUserInfo
()
YHHUD
.
flash
(
message
:
"登录状态失效"
)
YHHUD
.
flash
(
message
:
"登录状态失效"
)
UIViewController
.
current
?
.
navigationController
?
.
popToRootViewController
(
animated
:
false
)
// 发送清空所有红点通知
goTabBarBy
(
tabType
:
.
home
)
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didMarkAllMessagesReadedNotifiction
,
object
:
nil
)
UIViewController
.
current
?
.
navigationController
?
.
popToRootViewController
(
animated
:
false
)
goTabBarBy
(
tabType
:
.
home
)
}
return
return
}
}
guard
let
suclock
=
self
.
success
else
{
return
}
guard
let
suclock
=
self
.
success
else
{
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