diff --git a/app.js b/app.js index c265583..3da715b 100644 --- a/app.js +++ b/app.js @@ -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); diff --git a/project.private.config.json b/project.private.config.json index 8559739..88fecf2 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -4,5 +4,6 @@ "setting": { "compileHotReLoad": true, "urlCheck": false - } + }, + "libVersion": "3.2.0" } \ No newline at end of file