Merge pull request 'yem_rabbit_lhb' (#2) from yem_rabbit_lhb into main
Reviewed-on: #2
This commit is contained in:
commit
82edc78abd
@ -2,15 +2,15 @@ Manifest-Version: 1.0
|
||||
Jar-Id:
|
||||
Project-Name: yem-base-common
|
||||
Build-Tool: Gradle 7.6.3
|
||||
Build-Date: 2024-12-12 18:59:17
|
||||
Build-Date: 2024-12-24 11:20:33
|
||||
Built-By: Kingdee Cosmic Developer Tools
|
||||
Build-Num: 20241212185917122
|
||||
Build-Num: 20241224112033348
|
||||
App-Name:
|
||||
Git-Branch:
|
||||
Git-Branch: yem_rabbit_lhb
|
||||
Cloud-Name:
|
||||
Group-Name: yem.cosmic
|
||||
Bundle-Version: 1.0.0
|
||||
Git-Commit-Hash:
|
||||
Git-Commit-Hash: ceb644f750beebd3189008d35096dff52aa0ccd9
|
||||
Build-Image:
|
||||
Build-Jdk: 1.8.0_201
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
package yem.base.common.utils;
|
||||
|
||||
|
||||
|
||||
import com.google.zxing.BarcodeFormat;
|
||||
import com.google.zxing.EncodeHintType;
|
||||
import com.google.zxing.client.j2se.MatrixToImageWriter;
|
||||
@ -14,7 +16,6 @@ import kd.bos.logging.LogFactory;
|
||||
import kd.bos.service.attachment.FileItemExt;
|
||||
import kd.bos.service.attachment.FileSource;
|
||||
import kd.bos.util.FileNameUtils;
|
||||
import kd.bos.util.StringUtils;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.Base64;
|
||||
@ -22,6 +23,14 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
|
||||
/**
|
||||
* @BelongsProject: yem-cosmic
|
||||
* @BelongsPackage: yem.base.common.utils
|
||||
* @ClassName QRCodeToolUtil
|
||||
* @Author: LiuHB
|
||||
* @CreateTime: 2025-01-08 15:32
|
||||
*/
|
||||
public class QRCodeUtil {
|
||||
private static final Log log = LogFactory.getLog(QRCodeUtil.class);
|
||||
private static final boolean isLinux = isOSLinux();
|
||||
@ -40,7 +49,7 @@ public class QRCodeUtil {
|
||||
}
|
||||
|
||||
public static String createQRImage(String qrCodeText) {
|
||||
return createQRImage(qrCodeText, 80);
|
||||
return createQRImage(qrCodeText, 150);
|
||||
}
|
||||
|
||||
public static String createQRImage(String qrCodeText, int size) {
|
||||
|
Loading…
Reference in New Issue
Block a user