From 0beca15c24f0ddaec24a41d390e1a3d628ca998a Mon Sep 17 00:00:00 2001 From: Lei OT Date: Thu, 7 Mar 2024 16:28:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E8=AE=B0=E5=BD=95:=20?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=20location=20=E6=89=93=E5=BC=80=E9=AB=98?= =?UTF-8?q?=E5=BE=B7=E5=9C=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/msgUtils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/msgUtils.js b/src/lib/msgUtils.js index cee8e80..6212dd1 100644 --- a/src/lib/msgUtils.js +++ b/src/lib/msgUtils.js @@ -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,