Parcourir la source

Merge branch 'feature-refactor' of LiTaohong/im.doctor into feature-refactor

LiTaohong il y a 6 ans
Parent
commit
bd8e894e0b
2 fichiers modifiés avec 8 ajouts et 4 suppressions
  1. 3 2
      src/server/include/commons.js
  2. 5 2
      src/server/models/client/wechat.client.js

+ 3 - 2
src/server/include/commons.js

@ -94,9 +94,10 @@ const CONTENT_TYPES = {
    PrescriptionCheck:15,//续方审核消息消息
    PrescriptionBloodStatus:16,//续方咨询血糖血压咨询消息
    PrescriptionFollowupContent:17,//续方咨询随访问卷消息
    MapMsg:18,//地图消息
    DoorOrderBriefMsg:19,//服务工单格式化消息
    Rehabilitation: 20, //康复计划发送
    ChangeDoorCardInfo: 2102,//上门服务-修改工单卡片信息
    ChangeDoorDoctor: 2103,//上门服务-变更工单医生信息
    ChangeDoorPackageItems:2104, //上门服务-变更工单服务项信息
    typeToDescription: function (type, defaultDescription) {
        if (CONTENT_TYPES.Image == type) {
            return '[图片]';

+ 5 - 2
src/server/models/client/wechat.client.js

@ -62,7 +62,10 @@ class WechatClient extends RedisModel {
            message.content_type == CONTENT_TYPES.Image ||
            message.content_type == CONTENT_TYPES.Audio||
            message.content_type == CONTENT_TYPES.PrescriptionBloodStatus ||
            message.content_type == CONTENT_TYPES.PrescriptionFollowupContent)) {
            message.content_type == CONTENT_TYPES.PrescriptionFollowupContent ||
            message.content_type == CONTENT_TYPES.ChangeDoorCardInfo ||
            message.content_type == CONTENT_TYPES.ChangeDoorDoctor ||
            message.content_type == CONTENT_TYPES.ChangeDoorPackageItems)) {
            let patientClient = clientCache.findById(targetUserId);
            let doctorClient = clientCache.findByIdAndType(message.sender_id,SOCKET_TYPES.DOCTOR);
            let pc_doctorClient = clientCache.findByIdAndType("pc_"+message.sender_id,SOCKET_TYPES.PC_DOCTOR);
@ -412,7 +415,7 @@ class WechatClient extends RedisModel {
                        case 11:
                            consultTitle = "上门服务";
                            description  = "上门服务咨询";
                            url = url + "wx/common/chat/html/common_chat.html";
                            url = url + "wx/html/appoint_service/html/appoint-serviceDetail.html";
                        default:
                            consultTitle = "健康";
                            description  = topic.description;