ios14真机无法局域网调试

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:25 1308 0 全屏看文

AI助手支持GPT4.0

ios14真机无法局域网调试
框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
小程序 Bug iOS 14 iPhone XR 7.0.14

当 wx.request 的 url为局域网 ip 时,真机上请求无法 success ,开发工具和同事的一加没问题,错误如下:

预览、真机调试、发体验版设局域网 ip 都试过了,均是相同的错误。希望可以复现/修复


seo: request:fail 似乎已断开与互联网的连接

Framework type problem type operating system operating system version mobile phone model wechat version applet bug IOS 14 iPhone XR 7.0.14 wx.request When the URL of LAN IP is LAN IP, the request on the real machine can't succeed. The development tools and colleagues can add no problem. The errors are as follows: preview, real machine debugging, sending experience version to set LAN IP have all been tried, and they are the same errors. Hope to be able to reproduce / repair SEO: request:fail Seems to have been disconnected from the Internet

回答:

社区技术运营专员-CJiang:

你好,是内网接口请求了没反应吗?请求外网的接口会出现这个问题吗?

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

光:只有请求内网会直接fail(无networkTimeout的等待延迟现象),请求外网接口没异常
社区技术运营专员-CJiang:麻烦调用外网接口哈,已外网为准。

-EOF-

AI助手支持GPT4.0