|
@ -2184,9 +2184,11 @@ class Sessions extends RedisModel {
|
|
});
|
|
});
|
|
function callPush(participants,message){
|
|
function callPush(participants,message){
|
|
participants.forEach(function (participant) {
|
|
participants.forEach(function (participant) {
|
|
if (participant.id !== message.sender_id) {
|
|
|
|
|
|
// if (
|
|
|
|
// // participant.id !== message.sender_id &&
|
|
|
|
// participant.participant_role == PARTICIPANT_ROLES.HOST) {
|
|
Sessions.pushNotification(participant.id, participant.name, message,sessionType);
|
|
Sessions.pushNotification(participant.id, participant.name, message,sessionType);
|
|
}
|
|
|
|
|
|
// }
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@ -2493,7 +2495,7 @@ class Sessions extends RedisModel {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
if(config.environment!='local'){//pc版不推送个推,通过redis的publish
|
|
|
|
|
|
if(config.environment!='local'&&config.environment!='hzprod'){//pc版不推送个推,通过redis的publish
|
|
log.info("推送医生智能助手")
|
|
log.info("推送医生智能助手")
|
|
AppClient.sendNotification(targetUserId, message,sessionType,count);
|
|
AppClient.sendNotification(targetUserId, message,sessionType,count);
|
|
}
|
|
}
|