From 7d54db24d8c009909e2f0d725aef434273182221 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 15 八月 2025 16:38:54 +0800
Subject: [PATCH] fix: bug
---
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