Commit 4e4da2c3 by 刘鹏

feat: 账户注销功能 按服务端要求200 成功,非200 toast

parent 21662788
...@@ -64,13 +64,16 @@ class AccountUnRegisterActivity : BaseActivity() { ...@@ -64,13 +64,16 @@ class AccountUnRegisterActivity : BaseActivity() {
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe { .subscribe {
if (!isFinishing && it.data) { if (it.code == "200") {
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)
} }
} }
} }
} }
\ No newline at end of file
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