为什么模拟器能够正常调用,真机请求无响应?

小程序 文章 2020-07-31 11:41 519 0 全屏看文

AI助手支持GPT4.0

为什么模拟器能够正常调用,真机请求无响应?

模拟器请求正常,但是真机模拟的时候http 请求数据到不了服务端。

差异点,换了个域名可以正常。域名有什么坑呢,加入了域名列表。

The simulator request is normal, but the HTTP request data cannot reach the server during the simulation of the real machine. Difference point, change a domain name can be normal. What kind of hole does the domain name have? It has been added to the list of domain names.

回答:

寻己:

你应该是把这个打开了,先关闭再编译就会显示出问题

00:试了,没什么区别
Keven.:

要在右上角三个点里打开调试,重新进入

Distance:

需要https请求,在后台配置request域名,证书也要符合要求

00:是 https 请求。后台添加了域名。
Distance:提供下域名
冰箱:

截图贴链接,是否HTTPS

00:https模拟器没问题

-EOF-

AI助手支持GPT4.0