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) => {