Commit aedf97b1 by 刘鹏

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

parent 4e4da2c3
......@@ -8,7 +8,7 @@ ext {
"m-confide" : "0.0.49.74",
"m-consultant" : "0.0.60.25",
"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-im" : "0.0.21.44",
"m-dynamic" : "0.0.7.73",
......@@ -93,7 +93,7 @@ ext {
"m-confide" : "0.0.49.74",
"m-consultant" : "0.0.60.25",
"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-im" : "0.0.21.44",
"m-dynamic" : "0.0.7.73",
......
......@@ -64,12 +64,10 @@ class AccountUnRegisterActivity : BaseActivity() {
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe {
if (it.code == "200") {
if (!isFinishing) {
if (it.code == "200" && !isFinishing && it.data) {
ToastUtil.toastShort("账号已注销")
EventBus.getDefault().post(UnRegisterEvent())
finish()
}
} else {
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