Commit bda49139 by 霍志良

feat:preSMScheck

parent 4a4bf1ca
...@@ -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.77", "m-user" : "0.0.60.78",
"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.77", "m-user" : "0.0.60.78",
"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",
......
...@@ -66,13 +66,20 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base ...@@ -66,13 +66,20 @@ 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){
YDLCacheUtils.saveResetCodeTime(phone, System.currentTimeMillis().toString()) if (it.code == 200) {
YDLCacheUtils.saveResetCodeTime(phone, System.currentTimeMillis().toString())
// ToastUtil.toastShort("验证码已发送") // ToastUtil.toastShort("验证码已发送")
mView.startCountdown(60) mView.startCountdown(60)
} else { } else {
mView.startAnim() mView.startAnim()
}
}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