|
@ -417,9 +417,23 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
|
|
|
BasePatientDO p = basePatientDao.findById(re.getString("patient"));
|
|
|
//发送企业号推送
|
|
|
try{
|
|
|
String url = qywxUrl+"/ims-app-web/#/onlineChat/chatroom?rstitle="+p.getName()+"%20专家咨询&type=1&sessionId="+re.getString("sessiond_id");
|
|
|
logger.info("发送企业号url:"+url);
|
|
|
enterpriseService.sendMKMesByMobile(qywxId,d.getMobile(),"您的专家咨询有新的消息,请您尽快回复[查看详情]("+url+")");
|
|
|
|
|
|
|
|
|
if("zsyy".equals(qywxId)){
|
|
|
String url = qywxUrl+"/ims-app-web/#/onlineChat/chatroom?rstitle="+p.getName()+"%20专家咨询&type="+type+"&sessionId="+re.getString("sessiond_id");
|
|
|
logger.info("发送企业号url:"+url);
|
|
|
enterpriseService.sendMKMesByMobile(qywxId,d.getMobile(),"您的专家咨询有新的消息,请您尽快回复[查看详情]("+url+")");
|
|
|
}else if("xm_xzzx_wx".equals(qywxId)){
|
|
|
String roomUrl = "pages/doctor/onlineChat/chatroom?rstitle="+p.getName()+"%20专家咨询&type="+type+"&sessionId="+re.getString("sessiond_id");
|
|
|
logger.info("发送企业号url:"+url);
|
|
|
enterpriseService.sendXCXMesByDoctor(qywxId,
|
|
|
re.getString("doctor"),
|
|
|
"wx53f6bb4ac081d840",
|
|
|
roomUrl,
|
|
|
p.getName()+"%20专家咨询","您的专家咨询有新的消息,请您尽快回复",false,"");
|
|
|
}else{}
|
|
|
|
|
|
|
|
|
}catch (Exception e){
|
|
|
logger.info("发送企业号失败"+e.toString());
|
|
|
}
|