From a4459d4c2b28a94359353e0a7bfdb8c3fa17340e Mon Sep 17 00:00:00 2001 From: lanzhihui <503792708@qq.com> Date: Fri, 22 Nov 2024 17:47:16 +0800 Subject: [PATCH] update --- src/app.wpy | 2 +- src/pages/news/chitchat.wpy | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app.wpy b/src/app.wpy index 864dd90..c29f74a 100644 --- a/src/app.wpy +++ b/src/app.wpy @@ -35,7 +35,7 @@ wepy.app({ } }, globalData: { - versions: 'v5.5.79', // 版本号 + versions: 'v5.5.80', // 版本号 navBarHeight: 0, // 导航栏高度 navRight: 0, // 胶囊距右方间距(方保持左、右间距一致) navTop: 0, // 胶囊距顶部间距 diff --git a/src/pages/news/chitchat.wpy b/src/pages/news/chitchat.wpy index f3f162a..dbd5a31 100644 --- a/src/pages/news/chitchat.wpy +++ b/src/pages/news/chitchat.wpy @@ -1055,7 +1055,8 @@ wepy.page({ // 在当前页面接收到别人发送过来的消息 reception(e) { let vm = this - if (e.to != vm.otherUserId) { + console.log(e, 'e===') + if (e.from != vm.otherUserId || e.scene == 'team') { return } vm.sendMsgReceipt(e) @@ -1600,6 +1601,7 @@ wepy.page({ vm.getHistoryMsg() // 实时获取对方发送的消息 app.globalData.nim.on('msg', function (e) { + console.log('333') vm.reception(e) }) })