代码拉取完成,页面将自动刷新
com.github.sd4324530.fastweixin.QrcodeAPI.class 中
/**
* 创建二维码
*
* @param actionName 二维码类型,QR_SCENE为临时,QR_LIMIT_SCENE为永久
* @param sceneId 场景值ID,临时二维码时为32位非0整型,永久二维码时最大值为100000(目前参数只支持1--100000)
* @param expireSeconds 该二维码有效时间,以秒为单位。 最大不超过1800
* @return 二维码对象
*/
public QrcodeResponse createQrcode(QrcodeType actionName, String sceneId, Integer expireSeconds) {
return createQrcode(actionName, sceneId, null, expireSeconds);
}
关于 expireSeconds 参数 最大时间是2592000秒。也就是30天