Commit c172e23a by YKai

feat:强绑手机号代码优化

parent 0239c319
......@@ -227,11 +227,11 @@ class BindPhoneActivity : BaseActivity() {
.doOnSubscribe { showProgressDialog() }
.doAfterTerminate { dismissProgressDialog() }
.subscribe({
RxKeyboardTool.hideSoftInput(this)
if (it.code == 200) {
ToastUtil.toastShort("绑定成功")
UserHelper.getUserInfo()!!.userInfo!!.bind_phone = 1
UserHelper.getUserInfo()!!.userInfo!!.phone = phone
RxKeyboardTool.hideSoftInput(this)
if (mIsFromGuide) {
LoginUtils.loginSuccessOperate(this)
} else {
......@@ -239,7 +239,6 @@ class BindPhoneActivity : BaseActivity() {
}
} else if (it.code == 1300000004) { // 如果不是10分钟内注册,提示“绑定失败,此手机号已注册”,并标记此账号为无需强绑
ToastUtil.toastShort(it.msg)
RxKeyboardTool.hideSoftInput(this)
if (mIsFromGuide) {
LoginUtils.loginSuccessOperate(this)
} else {
......
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