Commit aedf97b1 by 刘鹏

feat: 账户注销功能 toast完善提示

parent 4e4da2c3
...@@ -8,7 +8,7 @@ ext { ...@@ -8,7 +8,7 @@ ext {
"m-confide" : "0.0.49.74", "m-confide" : "0.0.49.74",
"m-consultant" : "0.0.60.25", "m-consultant" : "0.0.60.25",
"m-fm" : "0.0.30.08", "m-fm" : "0.0.30.08",
"m-user" : "0.0.62.11", "m-user" : "0.0.62.14",
"m-home" : "0.0.23.48", "m-home" : "0.0.23.48",
"m-im" : "0.0.21.44", "m-im" : "0.0.21.44",
"m-dynamic" : "0.0.7.73", "m-dynamic" : "0.0.7.73",
...@@ -93,7 +93,7 @@ ext { ...@@ -93,7 +93,7 @@ ext {
"m-confide" : "0.0.49.74", "m-confide" : "0.0.49.74",
"m-consultant" : "0.0.60.25", "m-consultant" : "0.0.60.25",
"m-fm" : "0.0.30.08", "m-fm" : "0.0.30.08",
"m-user" : "0.0.62.11", "m-user" : "0.0.62.14",
"m-home" : "0.0.23.48", "m-home" : "0.0.23.48",
"m-im" : "0.0.21.44", "m-im" : "0.0.21.44",
"m-dynamic" : "0.0.7.73", "m-dynamic" : "0.0.7.73",
......
...@@ -64,12 +64,10 @@ class AccountUnRegisterActivity : BaseActivity() { ...@@ -64,12 +64,10 @@ class AccountUnRegisterActivity : BaseActivity() {
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe { .subscribe {
if (it.code == "200") { if (it.code == "200" && !isFinishing && it.data) {
if (!isFinishing) { ToastUtil.toastShort("账号已注销")
ToastUtil.toastShort("账号已注销") EventBus.getDefault().post(UnRegisterEvent())
EventBus.getDefault().post(UnRegisterEvent()) finish()
finish()
}
} else { } else {
ToastUtil.toastShort(it.msg) ToastUtil.toastShort(it.msg)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment