public class QrcodeParameter extends Object implements Serializable
Description:
| 限定符和类型 | 方法和说明 |
|---|---|
static QrcodeParameter |
createCardCouponQR(Integer expireSeconds,
CardQR... cardQRs)
创建卡券二维码
|
static QrcodeParameter |
createPermanenceQR(int sceneValue)
创建永久二维码(场景值为int)
|
static QrcodeParameter |
createPermanenceQR(String sceneValue)
创建永久二维码(场景值为string)
|
static QrcodeParameter |
createTemporaryQR(int expireSeconds,
long sceneValue)
创建临时二维码(场景值为int)
|
static QrcodeParameter |
createTemporaryQR(int expireSeconds,
String sceneValue)
创建临时二维码(场景值为string)
|
boolean |
equals(Object obj) |
Integer |
getExpireSeconds() |
QrcodeType |
getQrType() |
com.alibaba.fastjson.JSONObject |
getSceneContent() |
String |
getSceneValue() |
int |
hashCode() |
String |
toString() |
public Integer getExpireSeconds()
public QrcodeType getQrType()
public String getSceneValue()
public com.alibaba.fastjson.JSONObject getSceneContent()
public static QrcodeParameter createTemporaryQR(int expireSeconds, long sceneValue)
expireSeconds - 二维码有效时间,以秒为单位。 最大不超过2592000(即30天)sceneValue - 二维码的场景值 临时二维码最大值为无符号32位非0整型public static QrcodeParameter createTemporaryQR(int expireSeconds, String sceneValue)
expireSeconds - 二维码有效时间,以秒为单位。 最大不超过2592000(即30天)sceneValue - 二维码的场景值public static QrcodeParameter createPermanenceQR(int sceneValue)
sceneValue - 场景值 最大值为100000 (目前参数只支持1--100000)public static QrcodeParameter createPermanenceQR(String sceneValue)
sceneValue - 场景值public static QrcodeParameter createCardCouponQR(Integer expireSeconds, CardQR... cardQRs)
expireSeconds - 指定二维码的有效时间,范围是60 ~ 1800秒。不填默认为365天有效cardQRs - 二维码参数:二维码领取单张卡券/多张卡券Copyright © 2019. All rights reserved.