关于小程序升成二维码?

小程序 文章 2021-03-31 11:42 426 0 全屏看文

AI助手支持GPT4.0

关于小程序升成二维码?About upgrading the mini program to a QR code?

关于小程序升成二维码?

最近在做一个需求需要根据给用户生成的ID做一个二维码 显示在小程序的页面上 扫描后能显示出来用户的ID号 找了一些文章没懂 有大佬指点指点吗

Recently, we need to make a QR code according to the ID generated by the user, which can be displayed on the page of the small program. After scanning, the ID number of the user can be displayed. I found some articles, but I don't know. Do you have some advice

回答:

Kyle:

如果只是想生成一个二维码,用这个接口

https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html

如果是想做海报的话,就生成二维码之后,用canvas把二维码画到海报上

CitizenFour:

canvas

Fate_:用canvas画二维码????
CitizenFour:嗯,顺便把你想要的用户ID也画上去

-EOF-

AI助手支持GPT4.0