| 
					
				 | 
			
			
				@ -303,15 +303,19 @@ public class WechatController extends WeixinBaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            password = StringUtils.reverse(password); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            patient.setPassword(MD5.GetMD5Code(password + salt)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            patient.setSsc(ssc); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(!org.springframework.util.StringUtils.isEmpty(openid)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (!org.springframework.util.StringUtils.isEmpty(openid)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                patient.setOpenid(openid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                patient.setOpenidTime(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject json = patientService.register(idcard, ssc, name, mobile, MD5.GetMD5Code(password + salt) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    , salt, openid, 3); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (json != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                Patient p = patientDao.findByIdcard(idcard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                BusinessLogs.info(BusinessLogs.BusinessType.appointment, p.getCode(), new JSONObject(p)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    Patient p = patientDao.findByIdcard(idcard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    BusinessLogs.info(BusinessLogs.BusinessType.appointment, p.getCode(), new JSONObject(p)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } catch (Exception e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    e.printStackTrace(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                // 注册成功 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                return write(200, "注册成功!", "data", json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } else { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -339,7 +343,7 @@ public class WechatController extends WeixinBaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(required = false) String captcha, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(required = false) String password, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String openid) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        System.out.println("login openid : " + openid ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        System.out.println("login openid : " + openid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String errorMessage; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        LoginLog loginLog = new LoginLog(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        loginLog.setCreateTime(new Date()); 
			 |