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:
|
Jar-Id:
|
||||||
Project-Name: yem-base-common
|
Project-Name: yem-base-common
|
||||||
Build-Tool: Gradle 7.6.3
|
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
|
Built-By: Kingdee Cosmic Developer Tools
|
||||||
Build-Num: 20241212185917122
|
Build-Num: 20241224112033348
|
||||||
App-Name:
|
App-Name:
|
||||||
Git-Branch:
|
Git-Branch: yem_rabbit_lhb
|
||||||
Cloud-Name:
|
Cloud-Name:
|
||||||
Group-Name: yem.cosmic
|
Group-Name: yem.cosmic
|
||||||
Bundle-Version: 1.0.0
|
Bundle-Version: 1.0.0
|
||||||
Git-Commit-Hash:
|
Git-Commit-Hash: ceb644f750beebd3189008d35096dff52aa0ccd9
|
||||||
Build-Image:
|
Build-Image:
|
||||||
Build-Jdk: 1.8.0_201
|
Build-Jdk: 1.8.0_201
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
package yem.base.common.utils;
|
package yem.base.common.utils;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import com.google.zxing.BarcodeFormat;
|
import com.google.zxing.BarcodeFormat;
|
||||||
import com.google.zxing.EncodeHintType;
|
import com.google.zxing.EncodeHintType;
|
||||||
import com.google.zxing.client.j2se.MatrixToImageWriter;
|
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.FileItemExt;
|
||||||
import kd.bos.service.attachment.FileSource;
|
import kd.bos.service.attachment.FileSource;
|
||||||
import kd.bos.util.FileNameUtils;
|
import kd.bos.util.FileNameUtils;
|
||||||
import kd.bos.util.StringUtils;
|
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.util.Base64;
|
import java.util.Base64;
|
||||||
@ -22,6 +23,14 @@ import java.util.HashMap;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.UUID;
|
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 {
|
public class QRCodeUtil {
|
||||||
private static final Log log = LogFactory.getLog(QRCodeUtil.class);
|
private static final Log log = LogFactory.getLog(QRCodeUtil.class);
|
||||||
private static final boolean isLinux = isOSLinux();
|
private static final boolean isLinux = isOSLinux();
|
||||||
@ -40,7 +49,7 @@ public class QRCodeUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String createQRImage(String qrCodeText) {
|
public static String createQRImage(String qrCodeText) {
|
||||||
return createQRImage(qrCodeText, 80);
|
return createQRImage(qrCodeText, 150);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String createQRImage(String qrCodeText, int size) {
|
public static String createQRImage(String qrCodeText, int size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user