wx.getWifiList 为什么调用这些接口返回的错误都没有返回code,只返回errMsg。包括其他的一些接口也都一样。下面代码 res 根本没有code 返回。
//获取wifi列表
wx.getWifiList({
success: (res) => {
console.log("获取wifi列表成功",res)
},
fail:(res)=>{
console.log("获取wifi列表失败",res)
}
})
你好,可以先参考文档:https://developers.weixin.qq.com/miniprogram/dev/framework/device/bluetooth.html
还有问题,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点(具体到分钟)