Commit 0cf94a37 by 霍志良

Merge remote-tracking branch 'origin/4.1.64' into 4.1.64

parents 447eb8c7 a9196b7a
...@@ -34,6 +34,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base ...@@ -34,6 +34,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
} }
//发送登录验证码 //发送登录验证码
@SuppressLint("CheckResult")
override fun sendLoginCode(phone: String, phoneCountryCode: String) { override fun sendLoginCode(phone: String, phoneCountryCode: String) {
mModel.sendLoginMsgCode(phone, phoneCountryCode) mModel.sendLoginMsgCode(phone, phoneCountryCode)
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
...@@ -43,10 +44,10 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base ...@@ -43,10 +44,10 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
.subscribe({ .subscribe({
if (it.code == 200) { if (it.code == 200) {
YDLCacheUtils.saveCodeTime(phone, System.currentTimeMillis().toString()) YDLCacheUtils.saveCodeTime(phone, System.currentTimeMillis().toString())
// ToastUtil.toastShort("验证码已发送")
mView.startCountdown(60) mView.startCountdown(60)
} else { } else {
mView.startAnim() mView.startAnim()
ToastUtil.toastShort(it.msg)
} }
}, { }, {
mView.startAnim() mView.startAnim()
...@@ -57,6 +58,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base ...@@ -57,6 +58,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
/** /**
* 重置密码的验证码 * 重置密码的验证码
*/ */
@SuppressLint("CheckResult")
override fun sendResetCode(phone: String, countryCode: String) { override fun sendResetCode(phone: String, countryCode: String) {
mModel.sendResetCode(phone, countryCode) mModel.sendResetCode(phone, countryCode)
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
...@@ -80,6 +82,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base ...@@ -80,6 +82,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
/** /**
* 绑定手机号 * 绑定手机号
*/ */
@SuppressLint("CheckResult")
override fun bindPhone(param: BindPhoneJavaParam) { override fun bindPhone(param: BindPhoneJavaParam) {
mModel.bindPhone(param) mModel.bindPhone(param)
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
...@@ -116,6 +119,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base ...@@ -116,6 +119,7 @@ class VerificationCodePresenterImpl(view: IVerificationCodeContract.View) : Base
/** /**
* 检查重置密码的验证码(重置密码就是忘记密码) * 检查重置密码的验证码(重置密码就是忘记密码)
*/ */
@SuppressLint("CheckResult")
override fun checkResetCode(phone: String, countryCode: String, msgCode: String) { override fun checkResetCode(phone: String, countryCode: String, msgCode: String) {
mModel.checkResetCode(phone, countryCode, msgCode) mModel.checkResetCode(phone, countryCode, msgCode)
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
......
...@@ -112,12 +112,13 @@ ...@@ -112,12 +112,13 @@
android:background="@null" android:background="@null"
android:gravity="center_vertical|left" android:gravity="center_vertical|left"
android:hint="输入手机号" android:hint="输入手机号"
android:inputType="phone" android:inputType="number"
android:lines="1" android:lines="1"
android:maxLength="13" android:maxLength="13"
android:textColor="@color/platform_color_242424" android:textColor="@color/platform_color_242424"
android:textColorHint="@color/platform_color_EBEBEB" android:textColorHint="@color/platform_color_EBEBEB"
android:textSize="20sp" android:textSize="20sp"
android:textCursorDrawable="@null"
app:layout_constraintBottom_toBottomOf="@id/country_code" app:layout_constraintBottom_toBottomOf="@id/country_code"
app:layout_constraintStart_toEndOf="@id/country_code" app:layout_constraintStart_toEndOf="@id/country_code"
app:layout_constraintEnd_toStartOf="@id/iv_del" app:layout_constraintEnd_toStartOf="@id/iv_del"
......
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