wx.startLocalServiceDiscovery({
serviceType: '_http._tcp.',
success: function (res) {
console.log(111,res)
wx.onLocalServiceFound(function (obj) {
console.log(222,obj)
})
wx.onLocalServiceResolveFail(function (obj){
console.log(333,obj)
})
wx.onLocalServiceLost(function (obj){
console.log(444,obj)
})
wx.onLocalServiceDiscoveryStop(function (obj){
console.log('监听到搜索停止事件')
})
}
})
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)