问题:在多个IOS设备上.getConnectedWifi返回异常
代码片段
wx.startWifi({
success (res) {
console.log(res)
}
});
wx.getConnectedWifi({
success: function(res) {
console.log(res,"WIFI链接成功");
},
fail: function(res) {
console.log(res,"WIFI链接失败");
}
});
wx.getNetworkType({success(res){console.log(res,"网络类型")}})
wx.getSystemInfo({success(res){console.log(res,"系统信息")}})
输出结果依次是
{"errMsg":"startWifi:ok"}
{errMsg: "getConnectedWifi:fail no wifi is connected."} "WIFI链接失败"
{errMsg: "getNetworkType:ok", networkType: "wifi"} "网络类型"
{"benchmarkLevel":10,"language":"zh_CN","wifiEnabled":true,"safeArea":{"bottom":736,"height":716,"top":20,"width":414,"left":0,"right":414},"bluetoothEnabled":true,"locationAuthorized":false,"deviceOrientation":"portrait","notificationSoundAuthorized":true,"screenHeight":736,"windowHeight":624,"system":"iOS 13.6","version":"7.0.18","locationReducedAccuracy":false,"statusBarHeight":20,"fontSizeSetting":17,"pixelRatio":3,"windowWidth":414,"notificationAuthorized":true,"notificationBadgeAuthorized":true,"errMsg":"getSystemInfo:ok","locationEnabled":true,"batteryLevel":100,"model":"iPhone 6s Plus","screenWidth":414,"screenTop":64,"microphoneAuthorized":true,"albumAuthorized":true,"cameraAuthorized":true,"notificationAlertAuthorized":true,"brand":"iPhone","platform":"ios","SDKVersion":"2.14.1","host":{"env":"WeChat","appId":"","version":385880627}}
关键信息:
手机型号:iphone 6S Plus 操作系统.IOS 13.6 微信版本7.0.18 小程序SDK版本2.41.1
测试环境:IOS设备->真机调试->命令行执行
网络环境为公司WIFI 稳定性一般. 2.4G频段
操作时间 2021年1月14日 18:27分左右 前后误差十分钟.
多个设备测试均出现以上问题.
你好,复现后麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点,再提供下这种格式的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
同学们,我也遇到这个问题。有解决办法吗
请问这个解决了么
都几天了.官方快来看看啊.至少要告诉我们这个影响范围.不然到时候产品给用户.连解释都不知道怎么解释