微信开放平台开发功能接口方法
- Promise
- Async / Await
微信开发util函数
wx-js-utils/src/libs/WXMINIQR.js
Line 38 in f1b39b0
示例里这里写了path,应该是 page,另外这个接口返回的数据buffer在对象下面。实际生成的时候这个接口失败,生成文件一般是几个 byte.
这里使用云开发的话:
// 生成
let qrResult = await cloud.openapi.wxacode.getUnlimited({
page: 'pages/hello/hello',
scene: 'code=123',
checkPath: false,
envVersion: "develop",
})
// 上传
const cloudPath = await cloud.uploadFile({
cloudPath: filename.png,
fileContent: qrResult.buffer
})
// 云端这个接口需要配置权限
// config.json
{
"permissions": {
"openapi": [
"wxacode.getUnlimited"
]
}
}
返回结果结构有误,另外微信新增了 checkPath
、envVersion
等新的参数。
如题
腾讯云课堂的视频和文档吐槽就算了,
既然教程都出来了 为什么不好事做到底把成型的代码放出来呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.