wx.request请求配网失败问题?

小程序 文章 2022-01-20 19:40 987 0 全屏看文

AI助手支持GPT4.0

wx.request请求配网失败问题?wx.request request network configuration failure problem?

wx.request请求配网失败问题?

手机连接设备热点,使用wx.request() API 向设备指定IP【http://10.10.100.254】发出请求,错误显示:{"errMsg":"request:fail url not in domain list"};当微信版本在8.0.18以下时,调用正常;当微信版本在8.0.18时,就出现前面所述问题(如开启Debug模式时,调用正常)。2022年1月18号之前正常,今天测试就不行了。

请问这种问题,是微信服务器做限制了吗,我们应该怎么解决?

Connect your mobile phone to the device hotspot and use Wx The request () API specifies the IP address to the device【 http://10.10.100.254 】When sending a request, the error displays: {"errmsg": "request: fail URL not in domain list"}; When the wechat version is below 8.0.18, the call is normal; When the wechat version is 8.0.18, the above problems occur (for example, when the debug mode is turned on, the call is normal). It will be normal before January 18, 2022, but not today. Is this problem limited by wechat server? How should we solve it?

回答:

马来:

我也是遇到相同的问题,

田维忠:

当前手机通过wx.request连接设备(协议: http://10.10.100.254),但报错误{"errMsg":"request:fail url not in domain list"},我们通过小程序后台-开发-开发设置-服务器域名又无法增加http协议的域名配置,问题得不到解决。

代码使用场景:



我本人的QQ:592539168,能否加您这边的好友,详细的沟通下呢?

-EOF-

AI助手支持GPT4.0