chore: format code

This commit is contained in:
2024-10-06 21:21:05 +08:00
parent 0a5c9b63c2
commit 2b725ab71e
4 files changed
+7 -6

No files matched your search

@@ -36,7 +36,7 @@ class GenerateQRCodeCommand : BaseCommand() {
private fun generateQRCode(content: String): String {
val qrCodeWriter = QRCodeWriter()
val hints = mapOf(EncodeHintType.CHARACTER_SET to "UTF-8")
val bitMatrix = qrCodeWriter.encode(content, BarcodeFormat.QR_CODE, 300, 300 , hints)
val bitMatrix = qrCodeWriter.encode(content, BarcodeFormat.QR_CODE, 300, 300, hints)
return MatrixToImageWriter.toBufferedImage(bitMatrix).toByteArray().encodeToBase64()
}