瀏覽代碼

生成二维码长度加宽

wangliang 3 月之前
父節點
當前提交
0ffee39e6d

+ 2 - 2
distributed-print-business/src/main/java/com/qmth/distributed/print/business/util/GoogleBarCodeUtil.java

@@ -33,7 +33,7 @@ public class GoogleBarCodeUtil {
     /**
      * 条形码宽度
      */
-    private static final int WIDTH = 300;
+    private static final int WIDTH = 400;
 
     /**
      * 条形码高度
@@ -175,7 +175,7 @@ public class GoogleBarCodeUtil {
         ByteArrayOutputStream os = null;
         try {
             BufferedImage image = GoogleBarCodeUtil.getBarCode(content);
-             os = new ByteArrayOutputStream();
+            os = new ByteArrayOutputStream();
             ImageIO.write(image, "png", os);
             String imageBase64 = Base64Util.encode(os.toByteArray());