Skip to content

Commit a7aaeab

Browse files
committed
fix(miniprogram): MiniProgramApp.WXACode.CreateQRCode params
1 parent 25a8abe commit a7aaeab

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/zh/mini-program/miniprogram-code.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ description: 使用PowerWeChat生成小程序二维码、永久小程序码、
1212
获取小程序二维码,适用于需要的码数量较少的业务场景。**通过该接口生成的小程序码,永久有效,有数量限制**,详见[获取二维码](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/qr-code.html)
1313

1414
``` go
15-
services.MiniProgramApp.WXACode.CreateQRCode(&request.RequestQRCodeCreate{
16-
Path: "/page/index/index",
17-
Width: 300,
18-
})
15+
services.MiniProgramApp.WXACode.CreateQRCode("/page/index/index", 300)
1916
```
2017

2118
[微信官方文档](https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.createQRCode.html)

0 commit comments

Comments
 (0)