From 1597cb98ae6fd3971744bca56b67865c07011b30 Mon Sep 17 00:00:00 2001 From: "Albert.Z" Date: Tue, 7 May 2024 22:31:52 +0800 Subject: [PATCH] Fixed Upload File Request Head --- lib/util.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/util.js b/lib/util.js index 65be5b6..67fb5bd 100644 --- a/lib/util.js +++ b/lib/util.js @@ -27,8 +27,7 @@ util.md5 = function(str) { @params querystring 格式为 {参数名1 : 值1, 参数名2 : 值2} */ util.url = function(action, querystring) { - var url = app.siteInfo.siteroot + '?i=' + app.siteInfo.uniacid + '&t=' + app.siteInfo.multiid + '&v=' + app.siteInfo.version + '&from=wxapp&'; - + var url = app.siteInfo.siteroot + '?from=wxapp&'; if (action) { action = action.split('/'); if (action[0]) { @@ -205,14 +204,11 @@ util.request = function(option) { wx.request({ 'url': url, 'data': option.data ? option.data : {}, - 'header': option.header ? option.header : {}, 'method': option.method ? option.method : 'GET', 'header': { 'content-type': 'application/x-www-form-urlencoded' }, 'success': function(response) { - //wx.hideNavigationBarLoading(); - //wx.hideLoading(); if (response.data.errno) { if (response.data.errno == '41009') { wx.setStorageSync('userInfo', '');