diff --git a/pages/index/index.js b/pages/index/index.js index b1f2694..c9b92b3 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -194,7 +194,7 @@ Page({ 'user-token': userToken } getOrderExists().then(result => { - if (Number(result.data) != 1 || !app.release) { + if (Number(result.data) != 1 || !app.evn) { getBaseInfo().then(result => { app.globalData.userInfo = result.data wx.hideLoading() diff --git a/pages/login/index.js b/pages/login/index.js index ecaede2..1885717 100644 --- a/pages/login/index.js +++ b/pages/login/index.js @@ -138,7 +138,8 @@ Page({ } getOrderExists().then(result => { wx.hideLoading() - if (Number(result.data) != 1 || !app.release) { + + if (Number(result.data) != 1 || !app.evn) { getBaseInfo().then(result => { app.globalData.userInfo = result.data this.setData({ loging: false}) @@ -154,6 +155,7 @@ Page({ this.setData({ loging: false}) }) } else { + getBaseInfo().then(result => { app.globalData.userInfo = result.data this.setData({ loging: false})