This commit is contained in:
lanzhihui 2024-11-22 17:47:16 +08:00
parent 0654e1254f
commit a4459d4c2b
2 changed files with 4 additions and 2 deletions

View File

@ -35,7 +35,7 @@ wepy.app({
} }
}, },
globalData: { globalData: {
versions: 'v5.5.79', // 版本号 versions: 'v5.5.80', // 版本号
navBarHeight: 0, // 导航栏高度 navBarHeight: 0, // 导航栏高度
navRight: 0, // 胶囊距右方间距(方保持左、右间距一致) navRight: 0, // 胶囊距右方间距(方保持左、右间距一致)
navTop: 0, // 胶囊距顶部间距 navTop: 0, // 胶囊距顶部间距

View File

@ -1055,7 +1055,8 @@ wepy.page({
// 在当前页面接收到别人发送过来的消息 // 在当前页面接收到别人发送过来的消息
reception(e) { reception(e) {
let vm = this let vm = this
if (e.to != vm.otherUserId) { console.log(e, 'e===')
if (e.from != vm.otherUserId || e.scene == 'team') {
return return
} }
vm.sendMsgReceipt(e) vm.sendMsgReceipt(e)
@ -1600,6 +1601,7 @@ wepy.page({
vm.getHistoryMsg() vm.getHistoryMsg()
// 实时获取对方发送的消息 // 实时获取对方发送的消息
app.globalData.nim.on('msg', function (e) { app.globalData.nim.on('msg', function (e) {
console.log('333')
vm.reception(e) vm.reception(e)
}) })
}) })