我也遇到同样问题,工具关闭https校验可以发送UDP包, 真机调试不可以
UDP功能模拟器预览可以发送,为什么真机调试不能发送?相关版本: 开发者工具:v1.02.1907301 调试基础库:2.8.2 手机型号:HUAWEI-SCL-CL00 运行系统:22 微型版本:7.0.5 调试现象: 模拟器调试仅仅在选中不校验合法域名、web-view(业务域名)、TLS版本以及HTTPS证书的情况下,才可以向局域网中的UDP客户端发送消息。 [图片] 真机调试发送出错,提示bind属性未定义: thirdScriptError Cannot read property 'bind' of undefined; [Component] Event Handler Error @ index/index#bound onSend TypeError: Cannot read property 'bind' of undefined at e.value (WAService.js:1:1078313) at e.f.(anonymous function) [as bind] (WAService.js:1:1086595) at ge.onSend (weapp:///index/index.js:13:20) at Object.r.safeCallback (WAService.js:1:1133279) at WAService.js:1:1308466 at r (WAService.js:1:1259608) at WAService.js:1:1259730 at WAService.js:1:423529 at Object.m (WAService.js:1:1905) at Object.value [as subscribeHandler] (C:\Users\PC\AppData\Roaming\Tencent\微信开发者工具\package.nw\js\unpack\remote-helper.js:68:2165) [图片] 代码片段: https://developers.weixin.qq.com/s/WWHSeimu7Cbl
2019-09-19