Przeglądaj źródła

新增发送医生外层消息接口

yeshijie 4 lat temu
rodzic
commit
e1e55ac711

+ 1 - 1
src/server/endpoints/v2/session.endpoint.js

@ -39,7 +39,7 @@ const APIv2 = require('../../include/endpoints').APIv2;
 * }
 */
router.post("/", function (req, res) {
    let payload = req.query;
    let payload = req.body;
    let testing = ObjectUtil.fieldsCheck(payload, 'participants', 'session_name', 'session_type');
    if (!testing.pass) {
        throw testing.message;

+ 1 - 26
src/server/models/client/app.client.js

@ -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)
                // }
            });
        }