From 786864122ed70c5cf9072047ed9250f7776006c1 Mon Sep 17 00:00:00 2001 From: chen <2659004835@qq.com> Date: Wed, 1 Sep 2021 16:04:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.js b/app.js index 33628d6..a0af77d 100644 --- a/app.js +++ b/app.js @@ -17,6 +17,11 @@ App({ onLaunch: function () { var that = this; wx.setStorageSync('urlPath', urlPath); + let hInfo = wx.getAccountInfoSync(); + // console.log(hInfo.envVersion);//develop:开发版 trial:体验版 release:正式版 + if(hInfo.miniProgram.envVersion != "trial"){ + console.log = () =>{} + } // this.setOpenid() // wx.getSetting({ // success: (res) => {