diff --git a/src/utils/msb-im.js b/src/utils/msb-im.js index 7cf7d89..d72e5fe 100644 --- a/src/utils/msb-im.js +++ b/src/utils/msb-im.js @@ -2,7 +2,7 @@ * @Author: ch * @Date: 2022-05-18 14:54:47 * @LastEditors: ch - * @LastEditTime: 2022-06-09 12:23:24 + * @LastEditTime: 2022-06-10 10:10:21 * @Description: file content */ import '@/utils/poto-req'; @@ -172,6 +172,7 @@ class MsbIm { if (data[this.option.ioKey] || data.code !== 200) { return false; } + console.log('[im] 主动接收的消息', data); let ctx = data.content; let historyData = [...this.sessionData], newData = []; @@ -194,9 +195,10 @@ class MsbIm { fromAvatar: ctx.fromAvatar, fromId: ctx.fromId, fromNickname: ctx.fromNickname, - id: ctx.id, + id: ctx.sessionId, lastMessage: ctx, messageList: [ctx], + updateTimeStamp: ctx.createTimeStamp, unreadCount: 1, }, ];