|
@ -156,9 +156,6 @@ public class WechatController extends WeixinBaseController {
|
|
|
if (StringUtils.isEmpty(mobile)) {
|
|
|
return error(-1, "手机号不允许为空");
|
|
|
}
|
|
|
if (patientService.findByMobile(mobile) != null) {
|
|
|
return error(-1, "该手机号已被注册");
|
|
|
}
|
|
|
// 解密身份证号
|
|
|
idcard = RSAUtils.getInstance(patientService).decryptString(idcard);
|
|
|
idcard = URLDecoder.decode(idcard, "UTF-8");
|
|
@ -193,7 +190,7 @@ public class WechatController extends WeixinBaseController {
|
|
|
|
|
|
if (patient != null) {
|
|
|
if (!StringUtils.isEmpty(patient.getMobile())) {
|
|
|
return error(-1, "该身份证已被注册");
|
|
|
return error(-2, "该身份证已被注册");
|
|
|
}
|
|
|
}
|
|
|
|