- 当前 Bug 的表现(可附上截图)
这个图片是nodejs的puppeteer进行网页截图获得的文件流。ios上是正常的,安卓的为unknown。
图片路径如下:
https://mp.51polestar.com/goodteacher_api/toImg?height=1206&url=https%3A%2F%2Fmp.51polestar.com%2FbjxH5%2Fjq_h5%2Fposter.html%3Fname%3DChangeZ%26student_id%3D456835087%26code%3D-1%26task_id%3D24928%26subject_name%3D%25E8%25AF%25AD%25E6%2596%2587%26sum_score%3D100%26knowledge_num%3D5%26stem_num%3D1%26depth%3D2%26task_title%3D%25E5%2591%259C%25E5%2591%259C%26headImg%3Dhttps%253A%252F%252Fwx.qlogo.cn%252Fmmopen%252Fvi_32%252F4VKQ8UlUu9pT06CPcTIJ5vDibORfVLJghggl1dxjgGy3GAW1ia14G8JDKTNCibnEaZpGaIIOTI3u8C4BFhw5NIldw%252F132%26token%3D9513ec217f6f495c90bffb01994081d0
- 预期表现
能返回正常路径
- 复现路径
- 提供一个最简复现 Demo
微信小程序开发问题解答
微信小程序开发者回答:
你的图片响应头为
content-type:application/octet-stream
注意:请在服务端响应的 header 中指定合理的 Content-Type 字段,以保证客户端正确处理文件类型
本文网址:http://www.91bianli.com/weixinxiaochengxu/23468.html