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', '');