优化消息发送函数,设定音视频通话的记录发送规则
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user