| 
					
				 | 
			
			
				@ -388,10 +388,10 @@ public class WechatController extends WeixinBaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    loginLog.setLoginType("1"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    loginLogService.saveLog(loginLog); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    //判断是否打过标签 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    if (!(Patient.isWchatTage.yes.getValue() == p.getIsWxtag())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                   //if (!(Patient.isWchatTage.yes.getValue() == p.getIsWxtag())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        //给患者打微信标签 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        weiXinTagUtil.addTagWithOpenid(openid, p.getCode(), p.getName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    //} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    return write(200, "登录成功", "data", map); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    errorMessage = "密码错误,登录失败"; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -466,7 +466,7 @@ public class WechatController extends WeixinBaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    loginLog.setUserCode(p.getCode()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    // 绑定用户手机号和openid 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    if (!StringUtils.equals(p.getOpenid(), openid)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    if (!StringUtils.equals(p.getOpenid(), openid) && !"undefined".equals(openid)) {//undefined不更新数据库 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        //patient.setOpenid(openid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        patientService.updatePatient(p, openid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -485,10 +485,10 @@ public class WechatController extends WeixinBaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    loginLog.setType("1"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    loginLogService.saveLog(loginLog); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    //判断是否打过标签 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    if (!(Patient.isWchatTage.yes.getValue() == p.getIsWxtag())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    //if (!(Patient.isWchatTage.yes.getValue() == p.getIsWxtag())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        //给患者打微信标签 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        weiXinTagUtil.addTagWithOpenid(openid, p.getCode(), p.getName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    //} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    return write(200, "登录成功", "data", map); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 |