public class QRCodeApi extends Object
生成带参数的二维码
| Constructor and Description |
|---|
QRCodeApi(WeiXinConfig wxConf) |
| Modifier and Type | Method and Description |
|---|---|
QRCode |
createQRCode(int sceneId)
生成永久二维码
无过期时间,数量较少(目前参数只支持1--100000)
|
QRCode |
createTempQRCode(int sceneId,
int expireSeconds)
生成临时二维码
最大为1800秒,但能够生成较多数量
|
WeiXinConfig |
getWeiXinConfig() |
String |
showQRCode(String ticket) |
public QRCodeApi(WeiXinConfig wxConf)
public WeiXinConfig getWeiXinConfig()
public QRCode createQRCode(int sceneId)
sceneId - 非0整型,最大值为100000(目前参数只支持1--100000)public QRCode createTempQRCode(int sceneId, int expireSeconds)
sceneId - 32位非0整型expireSeconds - 最大为1800秒public String showQRCode(String ticket) throws URISyntaxException
URISyntaxExceptionCopyright © 2012–2020 Wudao Software Studio. All rights reserved.