Commit 4a4bf1ca by 霍志良

feat:preSMScheck

parent 096d19bc
...@@ -8,7 +8,7 @@ ext { ...@@ -8,7 +8,7 @@ ext {
"m-confide" : "0.0.48.91", "m-confide" : "0.0.48.91",
"m-consultant" : "0.0.59.40", "m-consultant" : "0.0.59.40",
"m-fm" : "0.0.30.00", "m-fm" : "0.0.30.00",
"m-user" : "0.0.60.76", "m-user" : "0.0.60.77",
"m-home" : "0.0.22.51", "m-home" : "0.0.22.51",
"m-im" : "0.0.18.30", "m-im" : "0.0.18.30",
"m-dynamic" : "0.0.7.13", "m-dynamic" : "0.0.7.13",
...@@ -91,7 +91,7 @@ ext { ...@@ -91,7 +91,7 @@ ext {
"m-confide" : "0.0.48.91", "m-confide" : "0.0.48.91",
"m-consultant" : "0.0.51.16", "m-consultant" : "0.0.51.16",
"m-fm" : "0.0.23.5", "m-fm" : "0.0.23.5",
"m-user" : "0.0.60.74", "m-user" : "0.0.60.77",
"m-home" : "0.0.22.51", "m-home" : "0.0.22.51",
"m-im" : "0.0.3.15", "m-im" : "0.0.3.15",
"m-dynamic" : "0.0.1.7", "m-dynamic" : "0.0.1.7",
......
...@@ -127,14 +127,24 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base ...@@ -127,14 +127,24 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
.doOnSubscribe { mView.showLoading(true) } .doOnSubscribe { mView.showLoading(true) }
.doAfterTerminate { mView.showLoading(false) } .doAfterTerminate { mView.showLoading(false) }
.subscribe({ .subscribe({
if (it.code == 200) { if (it.data!=null){
//检查重置密码的验证码后清空本地保存时间 if (it.code == 200) {
YDLCacheUtils.saveResetCodeTime(phone, "") //检查重置密码的验证码后清空本地保存时间
YDLCacheUtils.saveResetCodeTime(phone, "")
mView.checkResetCodeSuccess(msgCode) mView.checkResetCodeSuccess(msgCode)
} else { } else {
mView.startAnim() mView.startAnim()
ToastUtil.toastShort(it.msg)//服务端返回{验证码错误&异常}信息
// mView.startAnim()
mView.verificationErrorCode()
}
}else{
ToastUtil.toastShort(it.msg)//服务端返回{验证码错误&异常}信息
// mView.startAnim()
mView.verificationErrorCode()
} }
}, { }, {
mView.startAnim() mView.startAnim()
ToastUtil.toastShort(it.message) ToastUtil.toastShort(it.message)
......
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