| 
					
				 | 
			
			
				@ -143,8 +143,9 @@ public class LoginController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                return error(-1, "获取手机IMEI码失败!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //身份证登录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(StringUtils.isNoneEmpty(idcard)&&StringUtils.isNoneEmpty(password)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                Doctor doctor=doctorService.findbyIdCard(idcard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(StringUtils.isNoneEmpty(mobile)&&StringUtils.isNoneEmpty(password)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                password = RSAUtils.getInstance(doctorService).decryptString(password); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                Doctor doctor=doctorService.findDoctorByMobile(mobile); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(doctor==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    return error(-1, "该身份证未注册!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -235,8 +236,9 @@ public class LoginController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                return error(-1, "获取手机IMEI码失败!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //身份证登录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(StringUtils.isNoneEmpty(idcard)&&StringUtils.isNoneEmpty(password)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                Patient patient= patientService.findByIdcard(idcard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(StringUtils.isNoneEmpty(mobile)&&StringUtils.isNoneEmpty(password)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                password = RSAUtils.getInstance(doctorService).decryptString(password); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                Patient patient= patientService.findByMobile(mobile); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(patient==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    return error(-1, "该身份证未注册!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -266,7 +268,6 @@ public class LoginController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    case 0: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        return error(-1, "验证码无效!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                // password = RSAUtils.getInstance(doctorService).decryptString(password); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                // password = URLDecoder.decode(password, "UTF-8"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                // password = StringUtils.reverse(password); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                // idcard = RSAUtils.getInstance(doctorService).decryptString(idcard); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -346,7 +347,9 @@ public class LoginController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if (doctor == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    return error(-1, "操作失败:此用户未注册"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    String password=MD5.GetMD5Code(newpwd+doctor.getSalt()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    String password = RSAUtils.getInstance(doctorService).decryptString(newpwd); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    password=MD5.GetMD5Code(password+doctor.getSalt()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    doctor.setPassword(password); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    doctorService.updateDoctorPwd(doctor); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    return success("操作成功!"); 
			 |