|
|
|
@ -375,9 +375,9 @@ export const whatsappMsgTypeMapped = {
|
|
|
|
|
type: 'location',
|
|
|
|
|
data: (msg) => ({
|
|
|
|
|
id: msg.wamid,
|
|
|
|
|
title: msg.location.name || '位置信息',
|
|
|
|
|
text: msg.location.address || '位置',
|
|
|
|
|
src: msg.location.url || 'https://cdn.pixabay.com/photo/2016/03/22/04/23/map-1272165_1280.png',
|
|
|
|
|
title: `位置信息 ${msg.location.name || ''} ↓打开高德地图`,
|
|
|
|
|
text: msg.location.address, // 地址
|
|
|
|
|
src: `https://uri.amap.com/marker?position=${msg.location.longitude},${msg.location.latitude}`,
|
|
|
|
|
data: {
|
|
|
|
|
longitude: msg.location?.longitude,
|
|
|
|
|
latitude: msg.location?.latitude,
|
|
|
|
|