shish 3 ani în urmă
părinte
comite
07908c6f81
1 a modificat fișierele cu 5 adăugiri și 5 ștergeri
  1. 5 5
      app-hd/controllers/PlantCgController.php

+ 5 - 5
app-hd/controllers/PlantCgController.php

@@ -39,10 +39,10 @@ class PlantCgController extends BaseController
             }
             $goodsSn = $item->goodsSn ?? '';
             $price = floatval($item->price);
-            $content = '<TEXT x="30" y="35" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';
-            $content .= '<BC128 x="30" y="105" h="75" s="1" r="0" n="3" w="10">' . $goodsSn . '</BC128>';
+            $content = '<TEXT x="30" y="45" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';
+            $content .= '<BC128 x="30" y="115" h="75" s="1" r="0" n="3" w="10">' . $goodsSn . '</BC128>';
             if ($key % 2 == 1) {
-                $content .= '<TEXT x="0" y="0" font="12" w="2" h="2" r="0">.</TEXT>';
+                $content .= '<TEXT x="0" y="5" font="12" w="2" h="2" r="0">.</TEXT>';
             }
             $content .= '<TEXT x="30" y="250" font="11" w="2" h="2" r="0">' . $price . '元</TEXT>';
             $p->times = $num;
@@ -76,8 +76,8 @@ class PlantCgController extends BaseController
 
         $goodsSn = $item->goodsSn ?? '';
         $price = floatval($item->price) ?? 0;
-        $content = '<TEXT x="30" y="35" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';
-        $content .= '<BC128 x="30" y="105" h="75" s="1" r="0" n="3" w="10">' . $goodsSn . '</BC128>';
+        $content = '<TEXT x="30" y="45" font="12" w="2" h="2" r="0">' . $name . '</TEXT>';
+        $content .= '<BC128 x="30" y="115" h="75" s="1" r="0" n="3" w="10">' . $goodsSn . '</BC128>';
         $content .= '<TEXT x="30" y="250" font="11" w="2" h="2" r="0">' . $price . '元</TEXT>';
         $p->times = $num;
         $p->printLabelMsg($content);