小程序真机调试时https的图片不显示,编辑器显示正常

小程序 文章 2021-02-05 10:41 901 0 全屏看文

AI助手支持GPT4.0

小程序真机调试时https的图片不显示,编辑器显示正常The https picture is not displayed when the applet is debugged on the real machine, and the editor displays normally

小程序真机调试时https的图片不显示,编辑器显示正常
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug image 微信安卓客户端 8.0.0 2.15

编辑器https图片显示正常,但是真机调试就不可以.地址是用的公司的内网地址,binderror 提示是404 (Not Found) 但是这个路径复制到浏览器中是可以下载的,请问这是什么问题?

Framework type problem type API / component name terminal type wechat version basic library version applet bug image wechat Android client 8.0.0 2.15 editor HTTPS image display is normal, but real machine debugging is not allowed. The address is the company's intranet address, The binderror prompt is 404 (not found), but this path can be downloaded by copying to the browser. What's the problem?

回答:

老张:

把图片放在公网上去测试。

大兵:

你把ip换成域名试试

NUMB:域名可以,请问这是为什么呢
大兵:忘了在哪看过,小程序好像只能用域名
NUMB:ip我使用http的就可以显示,https就不行
大兵:如果不是微信的限制,那你看看证书有没有问题吧
NUMB:请问前辈证书怎么确定有没有问题呢,不是很懂证书这一块
大兵:这个可以找你们后端的同学看,我记得是有命令可以查看证书有效期的
MORNINGSTART:

手机开启流量打开,不要连无线,看看你的图片是否正常


NUMB:请问这是什么原理呢

-EOF-

AI助手支持GPT4.0