From 968a9cbfa93f9323290cfeaf758c79651fb299cd Mon Sep 17 00:00:00 2001 From: huziyuan Date: Wed, 3 Feb 2021 12:59:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D1.5=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=99=BB=E9=99=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.js | 2 +- pages/login/index.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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})