feat: 修改地图服务的跳转链接
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m45s
All checks were successful
deploy to server / build-and-deploy (push) Successful in 2m45s
- 将高德地图改为百度地图
This commit is contained in:
@ -15,7 +15,8 @@ async function testSpeed(url: string, timeout = 1500) {
|
||||
|
||||
async function selectBestMap() {
|
||||
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',
|
||||
};
|
||||
|
||||
@ -33,7 +34,8 @@ async function selectBestMap() {
|
||||
|
||||
export async function getAutoMappedService(): Promise<string> {
|
||||
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',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user