From d90d55179ab1bc52d5ee4e9afe6113d37d394236 Mon Sep 17 00:00:00 2001 From: zhangmeng <494089941@qq.com> Date: Fri, 15 Oct 2021 14:34:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B6=85=E5=87=BA=E9=95=BF?= =?UTF-8?q?=E5=BA=A6=E9=98=88=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/src/main/java/com/hy/print/hy_printer/PrintAsOrder.java | 2 +- example/lib/main.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/main/java/com/hy/print/hy_printer/PrintAsOrder.java b/android/src/main/java/com/hy/print/hy_printer/PrintAsOrder.java index 4fe2f02..63b70ed 100644 --- a/android/src/main/java/com/hy/print/hy_printer/PrintAsOrder.java +++ b/android/src/main/java/com/hy/print/hy_printer/PrintAsOrder.java @@ -22,7 +22,7 @@ public class PrintAsOrder { private static void printBarCode(String code) { String width = "2"; - if (code.length() > 20) { + if (code.length() > 18) { width = "1"; } try { diff --git a/example/lib/main.dart b/example/lib/main.dart index c966341..2340eeb 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -75,7 +75,7 @@ class _HomeState extends State { TextButton( onPressed: () async { await HyPrinter.printAsOrder( - code: 'ASNB202112120001', + code: 'ASASNB2021121200011', fbaCode: '', channel: "", country: '',