| 
					
				 | 
			
			
				@ -156,6 +156,9 @@ 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"); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -190,7 +193,7 @@ public class WechatController extends WeixinBaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (patient != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if (!StringUtils.isEmpty(patient.getMobile())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    return error(-2, "该身份证已被注册"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    return error(-1, "该身份证已被注册"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -230,6 +233,9 @@ 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) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -284,7 +290,7 @@ public class WechatController extends WeixinBaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                patient = new Patient(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if (!StringUtils.isEmpty(patient.getMobile())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    return error(-2, "该身份证已被注册!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    return error(-1, "该身份证已被注册!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            patient.setName(name); 
			 |