Commit 4e4da2c3 by 刘鹏

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

parent 21662788
......@@ -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
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