public class QrcodeAPI extends Object
| Constructor and Description |
|---|
QrcodeAPI() |
| Modifier and Type | Method and Description |
|---|---|
static Qrcode |
createQrcode(String appId,
Integer sceneId,
Integer seconds)
创建二维码ticket,当seconds为0的或者空时,创建永久有效二维码
|
static String |
getQrCodeURL(String ticket)
通过ticket换取二维码
|
public static Qrcode createQrcode(String appId, Integer sceneId, Integer seconds)
appId - -第三方用户唯一凭证sceneId - -场景值ID,临时二维码时为32位非0整型,永久二维码时最大值为100000(目前参数只支持1--100000)seconds - -该二维码有效时间,以秒为单位。 最大不超过1800。当为0或者空的时候,则创建永久有效二维码Copyright © 2015. All rights reserved.