|
@ -169,27 +169,27 @@ public class WlyyFamilyMemberController extends EnvelopRestEndpoint {
|
|
|
return mixEnvelop;
|
|
|
}
|
|
|
}else if ("xm_dsyy_wx".equalsIgnoreCase(wxId)){
|
|
|
JSONObject object = dsyyPrescriptionService.queryCardListToHospital("",idCard);
|
|
|
if (object!=null){
|
|
|
if (object.getString("retCode").equalsIgnoreCase("00")){
|
|
|
jsonArrayDsyy = object.getJSONArray("cardlist");
|
|
|
if(jsonArrayDsyy!=null&&jsonArrayDsyy.size()>0){
|
|
|
JSONObject jsonObject= jsonArrayDsyy.getJSONObject(0);
|
|
|
String Pat_name = jsonObject.getString("userName");
|
|
|
String Next_Of_Kin_Phone = jsonObject.getString("phone");
|
|
|
if(!Next_Of_Kin_Phone.equalsIgnoreCase(phoneNum)){
|
|
|
mixEnvelop.setStatus(408);
|
|
|
mixEnvelop.setMessage("您所添加的家属的电话有误,无法发送验证码");
|
|
|
return mixEnvelop;
|
|
|
}
|
|
|
if(!Pat_name.equalsIgnoreCase(familyName)){
|
|
|
mixEnvelop.setStatus(408);
|
|
|
mixEnvelop.setMessage("您所添加的家属的名称有误,无法发送验证码");
|
|
|
return mixEnvelop;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
// JSONObject object = dsyyPrescriptionService.queryCardListToHospital("",idCard);
|
|
|
// if (object!=null){
|
|
|
// if (object.getString("retCode").equalsIgnoreCase("00")){
|
|
|
// jsonArrayDsyy = object.getJSONArray("cardlist");
|
|
|
// if(jsonArrayDsyy!=null&&jsonArrayDsyy.size()>0){
|
|
|
// JSONObject jsonObject= jsonArrayDsyy.getJSONObject(0);
|
|
|
// String Pat_name = jsonObject.getString("userName");
|
|
|
// String Next_Of_Kin_Phone = jsonObject.getString("phone");
|
|
|
// if(!Next_Of_Kin_Phone.equalsIgnoreCase(phoneNum)){
|
|
|
// mixEnvelop.setStatus(408);
|
|
|
// mixEnvelop.setMessage("您所添加的家属的电话有误,无法发送验证码");
|
|
|
// return mixEnvelop;
|
|
|
// }
|
|
|
// if(!Pat_name.equalsIgnoreCase(familyName)){
|
|
|
// mixEnvelop.setStatus(408);
|
|
|
// mixEnvelop.setMessage("您所添加的家属的名称有误,无法发送验证码");
|
|
|
// return mixEnvelop;
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
|
|
|
}else if ("sd_tnzyy_wx".equalsIgnoreCase(wxId)){
|
|
|
com.alibaba.fastjson.JSONArray jsonArray1 = tnyyEntranceService.selectPatientMappingCode(idCard);
|
|
@ -261,11 +261,12 @@ public class WlyyFamilyMemberController extends EnvelopRestEndpoint {
|
|
|
}else if("xm_dsyy_wx".equalsIgnoreCase(wxId)){
|
|
|
System.out.println("发送第三医院验证码开始");
|
|
|
int result = 1;
|
|
|
if (null!=jsonArrayDsyy&&jsonArrayDsyy.size() > 0) {
|
|
|
result = dsyyPrescriptionService.SendSms(phoneNum, "您好,您当前操作的验证码是:" + captcha + ",2分钟内有效。如非本人操作,请忽略");
|
|
|
} else {
|
|
|
result = 2;
|
|
|
}
|
|
|
// if (null!=jsonArrayDsyy&&jsonArrayDsyy.size() > 0) {
|
|
|
// result = dsyyPrescriptionService.SendSms(phoneNum, "您好,您当前操作的验证码是:" + captcha + ",2分钟内有效。如非本人操作,请忽略");
|
|
|
// } else {
|
|
|
// result = 2;
|
|
|
// }
|
|
|
result = dsyyPrescriptionService.SendSms(phoneNum, "您好,您当前操作的验证码是:" + captcha + ",2分钟内有效。如非本人操作,请忽略");
|
|
|
if (0 == result) {
|
|
|
this.store(client_id, phoneNum, captcha, 120);
|
|
|
mixEnvelop.setMessage("验证码发送成功");
|