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

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