浏览代码

代码修改

LAPTOP-KB9HII50\70708 3 年之前
父节点
当前提交
0d3e69fbce
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      src/server/models/sessions/sessions.js

+ 5 - 3
src/server/models/sessions/sessions.js

@ -2184,9 +2184,11 @@ class Sessions extends RedisModel {
        });
        function callPush(participants,message){
            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);
                }
                // }
            });
        }
    }
@ -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("推送医生智能助手")
                    AppClient.sendNotification(targetUserId, message,sessionType,count);
                }