浏览代码

发起和结束咨询的消息由系统发出,发送者ID记录操作人!

8 年之前
父节点
当前提交
d8ac86d77c
共有 2 个文件被更改,包括 10 次插入10 次删除
  1. 8 8
      src/server/models/sessions/sessions.js
  2. 2 2
      src/server/resources/config/config.dev.js

+ 8 - 8
src/server/models/sessions/sessions.js

@ -1022,14 +1022,14 @@ class Sessions extends RedisModel {
                            res.forEach(function (participant) {
                            res.forEach(function (participant) {
                                if (participant.id == message.sender_id){
                                if (participant.id == message.sender_id){
                                    message.sender_img = participant.avatar;
                                    message.sender_img = participant.avatar;
                                    if(participant.participant_role == PARTICIPANT_ROLES.REGULAR){
                                        if (message.content_type == CONTENT_TYPES.PlainText ||
                                            message.content_type == CONTENT_TYPES.Image ||
                                            message.content_type == CONTENT_TYPES.Audio||
                                            message.content_type == CONTENT_TYPES.Video){
                                                 participants.updateUser(sessionId,message.sender_id,PARTICIPANT_ROLES.HOST);
                                        }
                                    }
                                    // if(participant.participant_role == PARTICIPANT_ROLES.REGULAR){
                                    //     if (message.content_type == CONTENT_TYPES.PlainText ||
                                    //         message.content_type == CONTENT_TYPES.Image ||
                                    //         message.content_type == CONTENT_TYPES.Audio||
                                    //         message.content_type == CONTENT_TYPES.Video){
                                    //              participants.updateUser(sessionId,message.sender_id,PARTICIPANT_ROLES.HOST);
                                    //     }
                                    // }
                                    callPush(res,message);
                                    callPush(res,message);
                                }
                                }
                            })
                            })

+ 2 - 2
src/server/resources/config/config.dev.js

@ -19,8 +19,8 @@ let redisConfig = {
// 三师后台
// 三师后台
let wlyyServerConfig = {
let wlyyServerConfig = {
    host: '192.168.131.102',
    port: 8080
    host: '172.19.103.87',
    port: 9092
};
};
// 个推AppStore版参数
// 个推AppStore版参数