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); }