|
@ -224,35 +224,10 @@ class AppClient extends RedisModel {
|
|
|
message.business_type == MESSAGE_BUSSINESS_TYPE.D_CT_05||
|
|
|
message.business_type == MESSAGE_BUSSINESS_TYPE.D_CT_06||
|
|
|
message.business_type == MESSAGE_BUSSINESS_TYPE.D_CT_07){
|
|
|
//是否发送消息
|
|
|
// MessageNoticeSettingRepo.findOne(targetId,'1',function (err,res) {
|
|
|
// if(res&&res.length>0){
|
|
|
// let master_switch = res[0].master_switch;
|
|
|
// let im_switch = res[0].im_switch;
|
|
|
// let family_topic_switch = res[0].family_topic_switch;
|
|
|
// if(master_switch==0||im_switch==0){
|
|
|
// ModelUtil.logError(targetId+"-关闭im消息,消息id", message.id);
|
|
|
// }
|
|
|
// // else if(session_type==SESSION_TYPES.MUC&&family_topic_switch==1){
|
|
|
// // SignFamilyRepo.isHealthDoctor(message.session_id,targetId,function (err,res) {
|
|
|
// // if(res&&res.length==0){
|
|
|
// // ModelUtil.logError("全科医生:"+targetId+"-关闭im消息,消息id", message.id);
|
|
|
// // }else{
|
|
|
// // AppClient.sendNotice(targetId, message, sessionType,badge,userStatus)
|
|
|
// // }
|
|
|
// // })
|
|
|
// // }
|
|
|
// else{
|
|
|
// AppClient.sendNotice(targetId, message, sessionType,badge,userStatus)
|
|
|
// }
|
|
|
// }
|
|
|
// });
|
|
|
|
|
|
log.info("推送医生模版消息-sendNotice");
|
|
|
AppClient.sendNotice(targetId, message, sessionType,badge,userStatus)
|
|
|
}
|
|
|
// else{
|
|
|
// AppClient.sendNotice(targetId, message, sessionType,badge,userStatus)
|
|
|
// }
|
|
|
|
|
|
});
|
|
|
}
|