收藏
回答

wx.getExptInfoSync 方法在PC客户端打开小程序时返回值有问题?

比如下面代码段,在真机和开发工具都能拿到对于的值,在微信PC客户端打开小程序时返回值是空对象 {}

const res = wx.getExptInfoSync(['######'])

下面是 wx.getSystemInfoSync() 的返回值:

systemInfo {"albumAuthorized": true, "benchmarkLevel": -1, "bluetoothEnabled": false, "brand": "microsoft", "cameraAuthorized": true, "fontSizeSetting": 15, "language": "zh_CN", "locationAuthorized": true, "locationEnabled": true, "microphoneAuthorized": true, "model": "microsoft", "notificationAuthorized": true, "notificationSoundEnabled": true, "pixelRatio": 1.5, "platform": "windows", "power": 100, "safeArea": {"bottom": 780, "height": 780, "left": 0, "right": 414, "top": 0, "width": 414}, "screenHeight": 780, "screenWidth": 414, "statusBarHeight": 20, "system": "Windows 11 x64", "theme": "light", "version": "4.0.3.43", "wifiEnabled": true, "windowHeight": 780, "windowWidth": 414, "SDKVersion": "3.8.3", "enableDebug": true, "devicePixelRatio": 1.5, "host": {"appId": "", "env": "WeChat"}}

最后一次编辑于  05-12
回答关注问题邀请回答
收藏
登录 后发表内容
问题标签