|
|
@@ -100,6 +100,9 @@ public class LogoutEtcStep3Activity extends AppActivity { |
|
|
|
// 设备相关 |
|
|
|
private boolean hasDevice = false; // 是否有设备需要注销 |
|
|
|
private int currentStepNo = 1; // 当前步骤号,从1开始 |
|
|
|
|
|
|
|
// 验证码相关 |
|
|
|
private boolean smsCodeVerified = false; // 验证码是否已验证通过 |
|
|
|
|
|
|
|
@Override |
|
|
|
protected View getLayoutView() { |
|
|
@@ -259,6 +262,14 @@ public class LogoutEtcStep3Activity extends AppActivity { |
|
|
|
private void checkSmsCode() { |
|
|
|
Log.i(this.getClass().getSimpleName(), "开始验证短信验证码"); |
|
|
|
|
|
|
|
// 如果验证码已经验证通过,直接提交注销申请 |
|
|
|
if (smsCodeVerified) { |
|
|
|
Log.i(this.getClass().getSimpleName(), "验证码已验证通过,直接提交注销申请"); |
|
|
|
submitLogoutEtcApply(); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
// 首次验证,需要检查验证码 |
|
|
|
if (FunHelper.isEmpty(FunHelper.getText(binding.etCode))) { |
|
|
|
Log.e(this.getClass().getSimpleName(), "验证码为空"); |
|
|
|
ToastUtils.show("请输入验证码!"); |
|
|
@@ -275,7 +286,10 @@ public class LogoutEtcStep3Activity extends AppActivity { |
|
|
|
MyRetrofit.newInstanceGZ(this,IFCode.IFCODE967, params, new MyRetrofit.ReturnResult() { |
|
|
|
@Override |
|
|
|
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { |
|
|
|
Log.i(this.getClass().getSimpleName(), "验证码验证成功,开始提交注销申请"); |
|
|
|
Log.i(this.getClass().getSimpleName(), "验证码验证成功,标记为已验证"); |
|
|
|
// 标记验证码已验证通过 |
|
|
|
smsCodeVerified = true; |
|
|
|
// 开始提交注销申请 |
|
|
|
submitLogoutEtcApply(); |
|
|
|
} |
|
|
|
|