|
@ -230,9 +230,6 @@ public class WechatController extends WeixinBaseController {
|
|
|
if (StringUtils.isEmpty(mobile)) {
|
|
|
return error(-1, "手机号不允许为空!");
|
|
|
}
|
|
|
if (patientService.findByMobile(mobile) != null) {
|
|
|
return error(-1, "该手机号已被注册!");
|
|
|
}
|
|
|
// 对验证码进行校验
|
|
|
int res = smsService.check(mobile, 1, captcha);
|
|
|
switch (res) {
|
|
@ -287,7 +284,7 @@ public class WechatController extends WeixinBaseController {
|
|
|
patient = new Patient();
|
|
|
} else {
|
|
|
if (!StringUtils.isEmpty(patient.getMobile())) {
|
|
|
return error(-1, "该身份证已被注册!");
|
|
|
return error(-2, "该身份证已被注册!");
|
|
|
}
|
|
|
}
|
|
|
patient.setName(name);
|