高德地图尝试唤起

dev/chat
Lei OT 1 year ago
parent 1b6233c6ee
commit 225d5ab4a0

@ -266,9 +266,6 @@ export const whatsappMsgTypeMapped = {
},
},
originText: msg.image?.caption || '',
// onOpen: () => {
// console.log('Open image', msg.image.link);
// },
}),
renderForReply: (msg) => ({
id: msg.wamid,
@ -377,7 +374,7 @@ export const whatsappMsgTypeMapped = {
id: msg.wamid,
title: `位置信息 ${msg.location.name || ''} ↓打开高德地图`,
text: msg.location.address, // 地址
src: `https://uri.amap.com/marker?position=${msg.location.longitude},${msg.location.latitude}`,
src: `https://uri.amap.com/marker?position=${msg.location.longitude},${msg.location.latitude}&callnative=1`,
data: {
longitude: msg.location?.longitude,
latitude: msg.location?.latitude,

Loading…
Cancel
Save