优化消息发送函数,设定音视频通话的记录发送规则

This commit is contained in:
2022-03-01 10:40:00 +08:00
parent 04d9d772c4
commit dbda19870f
11 changed files with 324 additions and 102 deletions

View File

@@ -132,11 +132,13 @@
break;
case 'location':
uni.chooseLocation({
success: (location) => {
console.log(location);
im.sentLocation(this.conversationType, this.targetId, location).then(() => {
this.success()
})
success: (location) => {
const thumbnail = ''
// 通过 location 的经纬度合成一张图片再把图片的base64发送出去
im.sentLocation(this.conversationType, this.targetId, location, thumbnail)
.then(() => {
this.success()
})
}
})
break;