ソースを参照

眼科通医生端推送代码提交

huangwenjie 4 年 前
コミット
e80ec4ddf9

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

@ -173,7 +173,7 @@ class AppClient extends RedisModel {
                doctorCode:targetId
            }
            let params = 'enterpriseId=xm_ykyy_wx&doctor='+targetId+'&patient='+message.session_id+'&orderType=1';
            let params = 'enterpriseId=xm_ykyy_wx&doctor='+targetId+'&patient='+message.sender_id+'&orderType=1';
            if(message.type ==1 && message.content.indexOf("relation") >0){
                log.info("该消息是系统提醒消息,不做推送,:消息内容"+message.content)

+ 2 - 2
src/server/util/oracledb.util.js

@ -36,7 +36,7 @@ let query = function(options){
                    doRelease(connection);
                    return handler(err, result);
                }
                // console.log(result);
                console.log(result);
                if(!result.rows ||  result.rows.length == 0){
                    handler(null, result.rows);
                }else{
@ -47,7 +47,7 @@ let query = function(options){
                        {
                            // log.info("开始组装数据库返回值:"+i)
                            p[key.name] = v[i];
                            // log.info(p)
                            log.info(p)
                            return p;
                        }, {})
                    }));