API 调用地址
{域名地址}/api/weapp/qrcode
说明:{域名地址} 需要替换成你的域名地址,如 https://www.anqicms.com/api/weapp/qrcode
调用方法
POST
请求参数
| 字段名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| path | string | 是 | 小程序路径 |
| scene | string | 是 | scene |
返回参数
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | int | 错误码 |
| msg | string | 错误原因说明 |
| data | string | 二维码图片地址 |
请求数据示例
| 参数 | 值 |
|---|---|
| path | /pages/index/index |
| scene |
返回数据示例
{
"code": 0,
"msg": "",
"data": "https://..."
}
错误代码
| 错误码 | 说明 |
|---|---|
| 0 | OK |
| -1 | 错误,错误原因在 msg 中指出 |
| 1001 | 未登录 |
| 1002 | 未授权 |
| 200 | API 请求 OK |