代码优化

This commit is contained in:
thinkgem
2025-08-08 13:48:20 +08:00
parent abb63bf547
commit 1a6d1b2a2e
27 changed files with 341 additions and 424 deletions

View File

@@ -18,7 +18,7 @@ public class ZxingUtilsTest {
String baseDir = FileUtils.getProjectPath();
// 条形码
String imgPath = baseDir + "\\target\\zxing_EAN13.png";
String imgPath = baseDir + "/target/zxing_EAN13.png";
String contents = "6923450657713";
int width = 105, height = 50;
@@ -30,7 +30,7 @@ public class ZxingUtilsTest {
System.out.println("finished zxing EAN-13 decode.");
// 二维码
String imgPath2 = baseDir + "\\target\\zxing.png";
String imgPath2 = baseDir + "/target/zxing.png";
String contents2 = "Hello Gem, welcome to Zxing!\nEMail [ thinkgem@163.com ]";
int width2 = 300, height2 = 300;