feat: 修改地图服务的跳转链接 #87

Manually merged
remilia merged 1 commits from feat/baidu into master 2025-11-19 14:06:42 +08:00

View File

@ -15,7 +15,8 @@ async function testSpeed(url: string, timeout = 1500) {
async function selectBestMap() { async function selectBestMap() {
const testTargets = { const testTargets = {
amap: 'https://www.amap.com/favicon.ico', // amap: 'https://www.amap.com/favicon.ico',
baidu: 'https://map.baidu.com/favicon.ico',
google: 'https://maps.google.com/favicon.ico', google: 'https://maps.google.com/favicon.ico',
}; };
@ -33,7 +34,8 @@ async function selectBestMap() {
export async function getAutoMappedService(): Promise<string> { export async function getAutoMappedService(): Promise<string> {
const target = { const target = {
amap: 'https://surl.amap.com/2dYNorIJ1dgoN', // amap: 'https://surl.amap.com/2dYNorIJ1dgoN',
baidu: 'https://j.map.baidu.com/f9/c3x',
google: 'https://maps.app.goo.gl/9LqvMwEq7VaRkqnM6', google: 'https://maps.app.goo.gl/9LqvMwEq7VaRkqnM6',
}; };