liujiangyao il y a 8 ans
Parent
commit
856cd16423

+ 4 - 1
app/src/main/java/com/sheep/gamegroup/view/activity/ChangeTelAct.java

@@ -204,7 +204,9 @@ public class ChangeTelAct extends BaseActivity implements PhoneContract.View{
                 if(!checkPhoneInput(mobile)){
                     return;
                 }
-
+                if (!canGetCaptchaPhone) {
+                    return;
+                }
                 if(oldOrNew == 0){
                     selfCountDownTimer.reset();
                     JSONObject jsonObject = new JSONObject();
@@ -321,6 +323,7 @@ public class ChangeTelAct extends BaseActivity implements PhoneContract.View{
             if(step == 2){
                 refreshData();
                 phoneBtnCode.setText(getString(R.string.get_captcha));
+                canGetCaptchaPhone = true;
                 if(selfCountDownTimer != null)
                     selfCountDownTimer.reset();
             }else if(step == 4){