扫描二维码在正式环境下无效
发布于 5 年前 作者 guiyingqiu 2949 次浏览 来自 问答

var scene = Number(wx.getStorageSync(‘scene’));    //scene为小程序场景值 场景值均为 正确

if (scene == 1011 || scene == 1012 || scene == 1013 ) {

        console.log(‘hello world!’)

       //线上环境不执行里面代码  开发版或测试版或真机调试正常

}

回到顶部