Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
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
杨凯
YDL-Component-Medical
Commits
4e4da2c3
Commit
4e4da2c3
authored
May 25, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 账户注销功能 按服务端要求200 成功,非200 toast
parent
21662788
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
AccountUnRegisterActivity.kt
m-user/src/main/java/com/yidianling/user/mine/AccountUnRegisterActivity.kt
+9
-5
No files found.
m-user/src/main/java/com/yidianling/user/mine/AccountUnRegisterActivity.kt
View file @
4e4da2c3
...
...
@@ -64,13 +64,16 @@ class AccountUnRegisterActivity : BaseActivity() {
.
subscribeOn
(
Schedulers
.
io
())
.
observeOn
(
AndroidSchedulers
.
mainThread
())
.
subscribe
{
if
(!
isFinishing
&&
it
.
data
)
{
ToastUtil
.
toastShort
(
"账号已注销"
)
EventBus
.
getDefault
().
post
(
UnRegisterEvent
())
finish
()
}
else
{
if
(
it
.
code
==
"200"
)
{
if
(!
isFinishing
)
{
ToastUtil
.
toastShort
(
"账号已注销"
)
EventBus
.
getDefault
().
post
(
UnRegisterEvent
())
finish
()
}
}
else
{
ToastUtil
.
toastShort
(
it
.
msg
)
}
}
}
}
\ No newline at end of file
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