|  | @ -1,8 +1,6 @@
 | 
	
		
			
				|  |  | package com.yihu.jw.hospital.endpoint.hospital;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  | import com.sun.media.jfxmedia.logging.Logger;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.doctor.BaseDoctorBackgroundDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.hospital.consult.WlyyHospitalSysDictDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.hospital.family.WlyyPatientFamilyMemberDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.dict.WlyyHospitalSysDictDao;
 | 
	
	
		
			
				|  | @ -18,9 +16,9 @@ import com.yihu.jw.restmodel.web.MixEnvelop;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
 | 
	
		
			
				|  |  | import com.yihu.jw.rm.hospital.BaseHospitalRequestMapping;
 | 
	
		
			
				|  |  | import com.yihu.jw.sms.service.YkyySMSService;
 | 
	
		
			
				|  |  | import com.yihu.jw.sms.service.ZBSmsService;
 | 
	
		
			
				|  |  | import com.yihu.jw.sms.service.ZhongShanSMSService;
 | 
	
		
			
				|  |  | import com.yihu.jw.sms.util.ykyy.vo.ResultMsg;
 | 
	
		
			
				|  |  | import com.yihu.jw.util.common.IdCardUtil;
 | 
	
		
			
				|  |  | import com.yihu.jw.util.date.DateUtil;
 | 
	
		
			
				|  |  | import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  | import io.swagger.annotations.ApiOperation;
 | 
	
	
		
			
				|  | @ -29,11 +27,11 @@ import net.sf.json.JSONArray;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Value;
 | 
	
		
			
				|  |  | import org.springframework.data.redis.core.RedisTemplate;
 | 
	
		
			
				|  |  | import org.springframework.http.HttpHeaders;
 | 
	
		
			
				|  |  | import org.springframework.http.HttpStatus;
 | 
	
		
			
				|  |  | import org.springframework.http.ResponseEntity;
 | 
	
		
			
				|  |  | import org.springframework.util.StringUtils;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.PostMapping;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RequestParam;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RestController;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import java.text.ParseException;
 | 
	
		
			
				|  |  | import java.util.ArrayList;
 | 
	
	
		
			
				|  | @ -68,6 +66,8 @@ public class WlyyFamilyMemberController extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private TnyyEntranceService tnyyEntranceService;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private ZBSmsService zbSmsService;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private WlyyHospitalSysDictDao wlyyHospitalSysDictDao;
 | 
	
		
			
				|  |  |     @Value("${wechat.id}")
 | 
	
		
			
				|  |  |     private String wxId;
 | 
	
	
		
			
				|  | @ -241,6 +241,17 @@ public class WlyyFamilyMemberController extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |                     mixEnvelop.setMessage("验证码发送失败");
 | 
	
		
			
				|  |  |                     mixEnvelop.setStatus(500);
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             }else if("sd_tnzyy_wx".equalsIgnoreCase(wxId)){
 | 
	
		
			
				|  |  |                 //发送短信获取验证码
 | 
	
		
			
				|  |  |                 String content = "您好,你的手机登录短信验证码是:"+captcha+",5分钟内有效。";
 | 
	
		
			
				|  |  |                 int result =  zbSmsService.sendMessage(phoneNum,content);
 | 
	
		
			
				|  |  |                 if (0 == result) {
 | 
	
		
			
				|  |  |                     this.store(client_id, phoneNum, captcha, 120);
 | 
	
		
			
				|  |  |                     mixEnvelop.setMessage("验证码发送成功");
 | 
	
		
			
				|  |  |                 } else {
 | 
	
		
			
				|  |  |                     mixEnvelop.setMessage("验证码发送失败");
 | 
	
		
			
				|  |  |                     mixEnvelop.setStatus(500);
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 |