master
chen 2021-09-01 16:04:11 +08:00
parent 9c1db5c199
commit 786864122e
1 changed files with 5 additions and 0 deletions

5
app.js
View File

@ -17,6 +17,11 @@ App({
onLaunch: function () { onLaunch: function () {
var that = this; var that = this;
wx.setStorageSync('urlPath', urlPath); wx.setStorageSync('urlPath', urlPath);
let hInfo = wx.getAccountInfoSync();
// console.log(hInfo.envVersion);//develop:开发版 trial体验版 release正式版
if(hInfo.miniProgram.envVersion != "trial"){
console.log = () =>{}
}
// this.setOpenid() // this.setOpenid()
// wx.getSetting({ // wx.getSetting({
// success: (res) => { // success: (res) => {