zhengyiming
昨天 3429b7d9e03c10b4bf563d4796e7608b812c3d94
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);
  }