|
@ -437,15 +437,16 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
}catch (Exception e){
|
|
|
logger.info("发送企业号失败"+e.toString());
|
|
|
}
|
|
|
//发送厦门i健康智能推送
|
|
|
try{
|
|
|
String wxurl = wlyyUrl+"/im/common/message/sendDoctorTemplateByDoctorIdcard?sessionId="+p.getId()+"_"+d.getId()+"_1&sessionType=1&from="+p.getId()+"&content="+URLEncoder.encode(symptoms)+"&businessType=1&doctor_idcard="+d.getIdcard()+"&patientName="+URLEncoder.encode(p.getName())+"&url=1";
|
|
|
logger.info("发送厦门i健康智能推送url:"+wxurl);
|
|
|
wlyyBusinessService.sendDoctorTemplateByDoctorIdcard(wxurl);
|
|
|
}catch (Exception e){
|
|
|
logger.info("发送厦门i健康智能失败"+e.toString());
|
|
|
if(!"zsyy".equals(qywxId) && !"xm_xzzx_wx".equals(qywxId)){
|
|
|
//发送厦门i健康智能推送
|
|
|
try{
|
|
|
String wxurl = wlyyUrl+"/im/common/message/sendDoctorTemplateByDoctorIdcard?sessionId="+p.getId()+"_"+d.getId()+"_1&sessionType=1&from="+p.getId()+"&content="+URLEncoder.encode(symptoms)+"&businessType=1&doctor_idcard="+d.getIdcard()+"&patientName="+URLEncoder.encode(p.getName())+"&url=1";
|
|
|
logger.info("发送厦门i健康智能推送url:"+wxurl);
|
|
|
wlyyBusinessService.sendDoctorTemplateByDoctorIdcard(wxurl);
|
|
|
}catch (Exception e){
|
|
|
logger.info("发送厦门i健康智能失败"+e.toString());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
return success("操作成功", consult);
|
|
|
}
|