小程序线上页面中无法显示后端返回来的二维码图片?

小程序 文章 2020-08-08 17:21 642 0 全屏看文

AI助手支持GPT4.0

小程序线上页面中无法显示后端返回来的二维码图片?The QR code image returned from the back end cannot be displayed on the online page of the Mini Program?

小程序线上页面中无法显示后端返回来的二维码图片?

后端调用小程序接口生成用户二维码,与用户信息一块返回给前端,前端存储在 storage 中。

在开发者工具、真机调试和体验版中,在生成海报的页面,都可以显示这个二维码,唯独在线上的时候,显示不了这个二维码。

二维码地址,在浏览器窗口中打开,是可以看到二维码图片的。

这个要如何解决?

The back end calls the applet interface to generate user QR code, which is returned to the front end together with the user information, and the front end is stored in storage. In the developer tools, real machine debugging and experience versions, the QR code can be displayed on the page that generates the poster, but the QR code cannot be displayed when it is online. QR code address, open in the browser window, you can see the QR code image. How to solve this problem?

回答:

Admin²⁰²⁰:

在开发者工具、真机调试和体验版中,在生成海报的页面,都可以显示这个二维码,唯独在线上的时候,显示不了这个二维码。


开启vconsole,就是调试模式看看哪里报错没有哈。就是体验版打开调试模式,然后打开线上版本查看vconsole,

Distance:

canvas生成海报?需要先downloadFile获得图片临时路径

刘长沙:,。,

-EOF-

AI助手支持GPT4.0