@@ -139,9 +139,6 @@ public class AddObuStep2Activity extends AppActivity { | |||
public void onError() { | |||
MyRetrofit.ReturnResult.super.onError(); | |||
hideDialog(); | |||
//TODO 测试 绕过短信验证码校验 | |||
//submit(); | |||
} | |||
}); | |||
} |
@@ -84,11 +84,6 @@ public class CheckRunningWaterStep2Activity extends AppActivity { | |||
public void onError() { | |||
MyRetrofit.ReturnResult.super.onError(); | |||
hideDialog(); | |||
//TODO 测试 绕过短信验证码校验 | |||
/*Bundle bundle = new Bundle(); | |||
bundle.putString("dataJson", JSON.toJSONString(curBizContent)); | |||
jumpToPage(CheckRunningWaterStep3Activity.class, bundle);*/ | |||
} | |||
}); | |||
} |
@@ -151,9 +151,6 @@ public class EquipmentLossReportActivity extends AppActivity { | |||
@Override | |||
public void onError(Response<Result> resp) { | |||
hideDialog(); | |||
//TODO 测试 绕过短信验证码校验 | |||
//cardReportTheLoss(); | |||
} | |||
}); | |||
} |
@@ -89,27 +89,31 @@ public class PetCardToAccountCardStep4Activity extends AppActivity { | |||
@Override | |||
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { | |||
hideDialog(); | |||
//申请更换 | |||
Map<String, String> params = new HashMap<>(); | |||
params.put("orderId", data.getOrderId()); | |||
params.put("cardId", data.getCardId()); | |||
MyRetrofit.newInstance(IFCode.IFCODE93, params, new MyRetrofit.ReturnResult() { | |||
@Override | |||
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { | |||
hideDialog(); | |||
gotoNextPage(bizContent.applyId); | |||
} | |||
applyChange(); | |||
} | |||
@Override | |||
public void onError(Response<Result> resp) { | |||
hideDialog(); | |||
} | |||
}); | |||
} | |||
@Override | |||
public void onError(Response<Result> resp) { | |||
hideDialog(); | |||
showErrorMsg(resp.body()); | |||
} | |||
}); | |||
//申请更换 | |||
private void applyChange(){ | |||
Map<String, String> params = new HashMap<>(); | |||
params.put("orderId", data.getOrderId()); | |||
params.put("cardId", data.getCardId()); | |||
MyRetrofit.newInstance(IFCode.IFCODE93, params, new MyRetrofit.ReturnResult() { | |||
@Override | |||
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { | |||
hideDialog(); | |||
gotoNextPage(bizContent.applyId); | |||
} | |||
@Override | |||
public void onError(Response<Result> resp) { | |||
hideDialog(); | |||
showErrorMsg(resp.body()); | |||
} | |||
}); | |||
} |
@@ -236,19 +236,6 @@ public class ReplaceEtcStep4Activity extends AppActivity { | |||
@Override | |||
public void onError(Response<Result> resp) { | |||
hideDialog(); | |||
//TODO 测试 绕过短信验证码校验 | |||
/*if (cancel){//取消申请 | |||
cancelApply(); | |||
return; | |||
} | |||
if (haveApplyInfo && applyData.status.equals("APPLY")){//申请中 | |||
gotoNextPage(applyData.getId()); | |||
}else{//申请 | |||
applyExchange(); | |||
}*/ | |||
} | |||
}); | |||
} |
@@ -15,6 +15,7 @@ import com.huntersun.vkyes.etcopencard.project.api.bean.ResultBean; | |||
import com.huntersun.vkyes.etcopencard.project.dialog.ConfirmDialog; | |||
import com.huntersun.vkyes.etcopencard.project.dialog.MenuMailDialog; | |||
import com.huntersun.vkyes.etcopencard.project.dialog.ReasonListDialog; | |||
import com.huntersun.vkyes.etcopencard.project.tool.MyShared; | |||
import com.huntersun.vkyes.etcopencard.project.ui.activity.order.EditOrderAddrActivity; | |||
import com.huntersun.vkyes.etcopencard.project.utils.Constants; | |||
import com.huntersun.vkyes.etcopencard.project.utils.FunHelper; | |||
@@ -157,6 +158,13 @@ public class ReplaceEtcStep5Activity extends AppActivity { | |||
params.put("region", FunHelper.getText(binding.tvArea)); | |||
params.put("postalCode", FunHelper.getText(binding.etPostCard)); | |||
params.put("applyRes", FunHelper.isEmpty(FunHelper.getText(binding.etReason)) ? FunHelper.getText(binding.tvReason) : FunHelper.getText(binding.etReason)); | |||
params.put("agentId", "52010106004"); | |||
params.put("channelId", "5201010200601130001"); | |||
params.put("channelType", "1"); | |||
params.put("terminalId", "999999999999"); | |||
params.put("TerminalId", "999999999999"); | |||
params.put("staffId", (String) MyShared.getInstance().get(MyShared.OPENID, "")); | |||
MyRetrofit.newInstance(IFCode.IFCODE887, params, new MyRetrofit.ReturnResult() { | |||
@Override | |||
public void onSuccess(ResultBean resultBean, ResultBean.BizContent bizContent) { |
@@ -238,6 +238,13 @@ public final class LoginActivity extends AppActivity implements KeyboardWatcher. | |||
return; | |||
} | |||
if (loginStart && !ValidatorUtils.isRightPassword(FunHelper.getText(mPasswordView))){ | |||
toast("密码格式输入错误"); | |||
mPasswordView.startAnimation(AnimationUtils.loadAnimation(getContext(), R.anim.shake_anim)); | |||
mCommitView.showError(3000); | |||
return; | |||
} | |||
if (loginStart) {//账号密码登录 | |||
loginByPwd(); | |||
} else {//验证码登录 |
@@ -38,7 +38,7 @@ public class ValidatorUtils { | |||
/* | |||
* 正则表达式:校验密码 | |||
*/ | |||
private static final String REGEX_PASSWORD = "^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[`~!@#$%^&*()_\\-+=<>?:\"{}|,.\\/;'\\\\[\\]·~!@#¥%……&*()——\\-+={}|《》?:“”【】、;‘',。、])[0-9a-zA-Z!`~!@#$%^&*()_\\-+=<>?:\"{}|,.\\/;'\\\\[\\]·~!@#¥%……&*()——\\-+={}|《》?:“”【】、;‘',。、]{10,20}$"; | |||
private static final String REGEX_PASSWORD = "^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[`~!@#$%^&*()_\\-+=<>?:\\\"{}|,.\\\\/;'\\\\\\\\[\\\\]·~!@#¥%……&*()——\\-+={}|《》?:“”【】、;‘',。、])[0-9a-zA-Z!`~!@#$%^&*()_\\-+=<>?:\\\"{}|,.\\\\/;'\\\\\\\\[\\\\]·~!@#¥%……&*()——\\-+={}|《》?:“”【】、;‘',。、]{10,20}$"; | |||
/* | |||
* 禁止实例化. | |||
@@ -64,8 +64,7 @@ public class ValidatorUtils { | |||
* @return | |||
*/ | |||
public static boolean isRightPassword(String pwd) { | |||
// return Pattern.matches(REGEX_PASSWORD, pwd); | |||
return true; | |||
return Pattern.matches(REGEX_PASSWORD, pwd); | |||
} | |||
/* |