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