Giter Site home page Giter Site logo

wx-js-utils's Issues

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

示例里这里写了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等新的参数。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.