Pārlūkot izejas kodu

查询未读数

wangzhinan 4 gadi atpakaļ
vecāks
revīzija
6d546aedb9

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

@ -103,6 +103,8 @@ const CONTENT_TYPES = {
    PrescriptionBloodStatus:16,//续方咨询血糖血压咨询消息
    PrescriptionFollowupContent:17,//续方咨询随访问卷消息
    Rehabilitation: 20, //康复计划发送
    PrescriptionDiagnosis: 24,//诊断发送
    PrescriptionInfo: 27,//药品消息
    VideoAnswerStatus: 29, //视屏请求
    HospiatlForward: 30, //互联网医院转发
    PrescriptionSuggest: 31, //会诊建议

+ 3 - 1
src/server/models/client/wechat.client.js

@ -81,7 +81,9 @@ class WechatClient extends RedisModel {
            message.content_type== CONTENT_TYPES.Article||
            message.content_type==CONTENT_TYPES.surveyMessage||
            message.content_type==CONTENT_TYPES.PersonalCard||
            message.content_type==CONTENT_TYPES.Video
            message.content_type==CONTENT_TYPES.Video||
            message.content_type==CONTENT_TYPES.PrescriptionInfo||
            message.content_type==CONTENT_TYPES.PrescriptionDiagnosis
            )) {
            let patientClient = clientCache.findById(targetUserId);
            let pc_patientClient = clientCache.findById("pcpatient_"+targetUserId);