diff --git a/api/xFetch.js b/api/xFetch.js index 3428a34..5231caa 100644 --- a/api/xFetch.js +++ b/api/xFetch.js @@ -45,7 +45,6 @@ export default function xFetch({ url, method, data, type }) { let alert = false; function alertOnce(content, rejects, err) { if (alert == false) { - sendError(JSON.stringify(err)) dd.alert({ content: content, buttonText: "确定", @@ -56,22 +55,4 @@ function alertOnce(content, rejects, err) { }); } alert = true; -} -function sendError(err) { - let url = `${getApp().globalData.globalUrl}/meet/job/addLog` - dd.httpRequest({ - headers: { - "Content-Type": "application/json;charset=UTF-8", - Authorization: `Bearer ${getApp().globalData.token}` - }, - data: err, - url: url, - method: 'post', - dataType: "json", - timeout: 15000, - success: function (res) { - }, - fail: function (err) { - } - }); } \ No newline at end of file