From 00da92c3a0204cab3ab4298feecd5ae7f41f2abc Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期二, 12 八月 2025 13:17:00 +0800 Subject: [PATCH] feat: 接口对接 --- packages/utils/location.ts | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/utils/location.ts b/packages/utils/location.ts index 69bf88e..dec2f88 100644 --- a/packages/utils/location.ts +++ b/packages/utils/location.ts @@ -26,7 +26,7 @@ static currentProvinceName: string; - static blackList = ['姹熻タ鐪�']; + static blackList = []; static async getLocation() { if (!this.wxLocation) { @@ -87,7 +87,10 @@ static getLocationByIp() { return axios .get<LocationResponse>( - `https://apis.map.qq.com/ws/location/v1/ip?key=HH7BZ-5L2KI-TN3GW-U5HKU-MK5H3-VOBZH` + `https://apis.map.qq.com/ws/location/v1/ip?key=HH7BZ-5L2KI-TN3GW-U5HKU-MK5H3-VOBZH`, + { + timeout: 3000, + } ) .then((res) => res.data); } -- Gitblit v1.9.1