riku
2022-08-09 87f6bb4bcb2446b9c9065b58391ae400cd358b77
service/baserequest.js
@@ -51,11 +51,15 @@
    // }
  }
  fun1.fail = function (error) {
    console.log("--------------请求错误----------------" + fun.url);
    console.log(error);
    wx.showToast({
      title: '网络连接失败',
      icon: 'none'
    })
    fun.fail(error)
    if (fun.fail) {
      fun.fail(error)
    }
  }
  fun1.complete = fun.complete
  wx.request(fun1)