From 676578f3be736ef109d1c8a15da265a62c66ba04 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期二, 12 八月 2025 13:13:23 +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