Browse Source

测试打印数据

ChengJH 4 months ago
parent
commit
10fb59da4a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/src/main/java/com/uas/pda_smart_com/util/PrintUtils.java

+ 3 - 1
app/src/main/java/com/uas/pda_smart_com/util/PrintUtils.java

@@ -2,6 +2,7 @@ package com.uas.pda_smart_com.util;
 
 import android.content.Context;
 import android.text.TextUtils;
+import android.util.Log;
 
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONArray;
@@ -12,6 +13,7 @@ import com.uas.pda_smart_com.tools.SharedPreUtil;
 public class PrintUtils {
 
     public static int printBar(Context context, String dataJson, int dpi, String printTemplate) {
+        Log.e("listArraythree1",dataJson);
         try {
             if (dpi <= 0) {
                 dpi = 203;
@@ -20,7 +22,7 @@ public class PrintUtils {
             if (TextUtils.isEmpty(printTemplate)) {
                 printTemplate = SharedPreUtil.getString(context, Constants.FLAG.PRINT_TEMPLATE_CACHE, "");
             }
-
+            Log.e("listArraythree2",printTemplate);
             int offset = 6,
                     h = 400,
                     v = 800,