преди 8 години
родител
ревизия
01d27b0d9d
променени са 2 файла, в които са добавени 9 реда и са изтрити 4 реда
  1. 7 3
      src/server/include/commons.js
  2. 2 1
      src/server/models/client/app.client.js

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

@ -77,11 +77,15 @@ const CONTENT_TYPES = {
    TopicEnd: 7,    // 议题结束 10 11 系统发送的会话消息
    Video:12,//视频
    typeToDescription: function (type, defaultDescription) {
        if (CONTENT_TYPES.Image === type) {
        if (CONTENT_TYPES.Image == type) {
            return '[图片]';
        } else if (CONTENT_TYPES.Audio === type) {
        } else if (CONTENT_TYPES.Audio == type) {
            return '[语音]';
        } else if (type > 3) {
        }
        else if (CONTENT_TYPES.Video == type) {
            return '[视频]';
        }
        else if (type > 3) {
            return defaultDescription;
        }

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

@ -96,7 +96,8 @@ class AppClient extends RedisModel {
    static sendNotification(targetId, message, sessionType) {
        if (message.content_type == CONTENT_TYPES.PlainText ||
            message.content_type == CONTENT_TYPES.Image ||
            message.content_type == CONTENT_TYPES.Audio) {
            message.content_type == CONTENT_TYPES.Audio||
            message.content_type == CONTENT_TYPES.Video) {
            AppClient.getAppStatus(targetId, function (err, userStatus) {
                if (err) {