Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

分享图片生成朋友圈生成不出来? #7

Open
githubjaychen opened this issue Jul 7, 2020 · 2 comments
Open

分享图片生成朋友圈生成不出来? #7

githubjaychen opened this issue Jul 7, 2020 · 2 comments

Comments

@githubjaychen
Copy link

image

image

不知道啥时候微信生成小程序码后面规定必须使用https了,将api\controller\qrcode.js第4行改为 const https = require("https"); 42行改为 var req = https.request ... 搞定!!

@peizhou
Copy link

peizhou commented Jul 27, 2020

controller 下的 qrcode.js 第4行

改为: const https = require("https");

第42行改为:
var req = https.request(options2, function(res) {

小程序后台开发设置的 download file 的host要改为你的图片地址的host, 否则还是一片空白

效果如图:

@hu739317870
Copy link

这张图片有点厉害

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants