- 安卓在企微调用wx.getSystemInfoSync()返回的model字段为“WxWork”?
经测试多台安卓机子, 在企微里面使用小程序的wx.getSystemInfoSync()API, 返回的model字段为“WxWork”,并不是设备型号。ios没有这个问题; 如下的返回详情:{"screenWidth":400,"phoneCalendarAuthorized":TRUE,"weixinVersionName":"8.0.43","windowHeight":874,"bluetoothEnabled":TRUE,"errMsg":"getSystemInfo:ok","language":"zh_CN","microphoneAuthorized":TRUE,"fontSizeScaleFactor":1,"locationAuthorized":TRUE,"host":{"env":"SDK","appId":"wx4706a9fcbbca10f2","forceUseNativeMap":TRUE,"version":587203073,"localWeChatVersion":671099704},"notificationAuthorized":TRUE, ====>"model":"WxWork", <===== "statusBarHeight":39,"safeArea":{"width":400,"right":400,"top":39,"left":0,"bottom":874,"height":835},"theme":"light","weixinVersionCode":2480,"brand":"Xiaomi","windowWidth":400,"locationEnabled":TRUE,"benchmarkLevel":0,"screenHeight":874,"abi":"arm64-v8a","version":"8.0.28","cameraAuthorized":TRUE,"deviceAbi":"arm64-v8a","environment":"wxwork","system":"Android 14","fontSizeSetting":16,"pixelRatio":3,"deviceOrientation":"portrait","wifiEnabled":TRUE,"screenTop":0,"platform":"android","SDKVersion":"2.27.3","enableDebug":FALSE,"devicePixelRatio":3,"mode":"default"}
01-29 - wx.getSystemInfo() 返回结果中model字段在很多安卓机是“WxWork ”?
wx.getSystemInfo() 返回结果中model字段是WxWork ,无法正确获取手机型号。
2023-12-06