public class QRCode extends Object
| Constructor and Description |
|---|
QRCode() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
createQRCode(QRParams qrParams)
获取小程序二维码,适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制
|
static String |
createQRCode(QRParams qrParams,
String savePath)
获取小程序二维码,适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制
|
static byte[] |
get(QRParams qrParams)
获取小程序码,适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制
|
static String |
get(QRParams qrParams,
String savePath)
获取小程序码,适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制
|
static byte[] |
getUnlimited(QRParams qrParams)
获取小程序码,适用于需要的码数量极多的业务场景。通过该接口生成的小程序码,永久有效,数量暂无限制
|
static String |
getUnlimited(QRParams qrParams,
String savePath)
获取小程序码,适用于需要的码数量极多的业务场景。通过该接口生成的小程序码,永久有效,数量暂无限制
|
public static String createQRCode(QRParams qrParams, String savePath) throws IOException
qrParams - savePath - 保存地址 D:\\a.pngIOExceptionpublic static byte[] createQRCode(QRParams qrParams) throws IOException
qrParams - IOExceptionpublic static String getUnlimited(QRParams qrParams, String savePath) throws IOException
qrParams - savePath - 保存地址 D:\\a.pngIOExceptionpublic static byte[] getUnlimited(QRParams qrParams)
qrParams - IOExceptionpublic static String get(QRParams qrParams, String savePath) throws IOException
qrParams - savePath - 保存地址IOExceptionpublic static byte[] get(QRParams qrParams)
qrParams - Copyright © 2021. All rights reserved.