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

[bug] 示例里 getQR 这里写成了path #8

Open
Lucassssss opened this issue Nov 9, 2021 · 0 comments
Open

[bug] 示例里 getQR 这里写成了path #8

Lucassssss opened this issue Nov 9, 2021 · 0 comments

Comments

@Lucassssss
Copy link

Lucassssss commented Nov 9, 2021

示例里这里写了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"
    ]
  }
}

返回结果结构有误,另外微信新增了 checkPathenvVersion等新的参数。

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

1 participant