liudan 1 year ago
parent f1b8d5dc2e
commit b983f24222
  1. 10
      app.js
  2. 3
      project.private.config.json

@ -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);

@ -4,5 +4,6 @@
"setting": { "setting": {
"compileHotReLoad": true, "compileHotReLoad": true,
"urlCheck": false "urlCheck": false
} },
"libVersion": "3.2.0"
} }
Loading…
Cancel
Save