Wechat's developer tools and experience version do not report errors, but the online version keeps reporting errors.

Wechat"s developer tools and experience version do not report errors, but the online version keeps reporting errors
getLocation () {/ / get the current geographic location and speed

wx.getLocation({
  type: "gcj02",
  success: (res) => {
    console.log(res, "affsddd")
    this.setData({ longitude: res.longitude, latitude: res.latitude })
    var that = this
    console.log("")
    qqmapsdk.reverseGeocoder({
      location: {
        latitude: res.latitude,
        longitude: res.longitude
      },
      success: function (res) {
        console.log("success1")
        console.log(res)
        // resolve(res);
        console.log("errors")
        console.log(res, "errors")
        
        that.setData({ adcode: res ? res.result.ad_info.adcode : "" })
       
        app.wxapi("/miniapp/shop/current", { areaId: res ? res.result.ad_info.adcode : "" })
          .then(res => {
            let name = "";
            let saleRegionId = "";
            if (res.data) {
              name = res.data.name;
              saleRegionId = res.data.id;
            }
            that.setData({ "city": name, "saleRegionId": saleRegionId })// 
            wx.setStorageSync("siteCity", name)// 
            wx.setStorageSync("saleRegionId", saleRegionId)// id
            that.getshopList().then(res => {
              that.setData({ shopList: res.data })
            })
          })
      },
      fail: function (res) {
        console.log("error1")
        console.log(res)

        // reject(res);
      },
      fail: function (res) {
        console.log("error2")
        console.log(res)

        // reject(res);
      }
    })
  },
  fail: (res) => {
    console.log(res, "affs")
    if (!this.data.isreject) {// 
      wx.showModal({
        title: "",
        content: "",
        success: function (res) {
          if (res.confirm) {
            console.log("")
          } else if (res.cancel) {
            console.log("")
          }
        }
      })
    }
  }
})

},

the main function is to obtain longitude and latitude, and then reverse address resolution. There is no problem on pc and trial version, but when it is posted online, the problem is reported. The problem is very strange. When I console arrived and I want to smash my phone, I began to report an error and suspected that it was the problem of qqmapsdk.reverseGeocoder. But I did not print it in success fail, saying that it was result"s fault. It was useless to write result to death. It didn"t come this far. Do you know

?
Dec.14,2021

configure the domain name in the background

Menu