|
@ -344,6 +344,24 @@ public class YkyyService {
|
|
|
return response;
|
|
|
}
|
|
|
|
|
|
public String GetDoctorInfoByLoginId(String loginId) throws Exception{
|
|
|
String response = "";
|
|
|
String url = "http://www.yanketong.com:90/api/doctor/GetDoctorInfoByTel?loginId="+loginId;
|
|
|
response = httpClientUtil.get(url,"utf-8");
|
|
|
logger.info("根据电话获取医生信息接口:"+response);
|
|
|
if (StringUtils.isNoneBlank(response)){
|
|
|
JSONObject json = JSONObject.parseObject(response);
|
|
|
if (json.getString("code").equalsIgnoreCase("10000")){
|
|
|
String verifyCode = json.getJSONObject("value").getString("verifyCode");
|
|
|
return verifyCode;
|
|
|
}else {
|
|
|
throw new Exception("获取失败");
|
|
|
}
|
|
|
}else {
|
|
|
throw new Exception("获取失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
/**获取眼科通忘记密码信息
|
|
|
*
|