|
|
|
@ -233,10 +233,12 @@ App({ |
|
|
|
|
error = success; |
|
|
|
|
data = {}; |
|
|
|
|
} |
|
|
|
|
if (this.globalData.userInfo) { |
|
|
|
|
data['user_id'] = this.globalData.userInfo.id; |
|
|
|
|
data['token'] = this.globalData.userInfo.token; |
|
|
|
|
} |
|
|
|
|
// if (wx.getStorageSync("userInfo")) {
|
|
|
|
|
// // data['user_id'] = this.globalData.userInfo.id;
|
|
|
|
|
// // data['token'] = this.globalData.userInfo.token;
|
|
|
|
|
// data['user_id'] = wx.getStorageSync("userInfo");
|
|
|
|
|
// data['token'] = wx.getStorageSync("token");
|
|
|
|
|
// }
|
|
|
|
|
//移除最前的/
|
|
|
|
|
while (url.charAt(0) === '/') |
|
|
|
|
url = url.slice(1); |
|
|
|
|