如何看待微信公开课小程序热门讨论「小程序二维码生成」
摘要:小程序二维码生成
展开:哪个大神给我一个二维码生成接口B(https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_tokenACCESS_TOKEN)后端发送https的具体代码啊,ACCESS_TOKEN这个我已经生成了。我的后端老是返回,errcode:44002errmsg:emptypostdatahint:[ZlpWma0658e622]这两个,我的后端代码是:varaccrequest.query.accvarulrapi.weixin.qq.comconstoptions{hostname:ulr,port:443,path:/wxa/getwxacodeunlimit?access_token+acc,method:post,};console.log(options)constreqhttps.request(options,(res){console.log(状态码:,res.statusCode);console.log(请求头:,res.headers);res.on(data,(d){process.stdout.write(d);response.write(d)response.end();});});req.on(error,(e){console.error(e);});req.end();看看是不是哪里设置错了,接口B没有说填写必须的参数了解更多