Kaynağa Gözat

打印大小

shish 2 yıl önce
ebeveyn
işleme
bcc5b9e075
1 değiştirilmiş dosya ile 8 ekleme ve 3 silme
  1. 8 3
      biz-ghs/order/classes/OrderClass.php

+ 8 - 3
biz-ghs/order/classes/OrderClass.php

@@ -975,7 +975,7 @@ class OrderClass extends BaseClass
         return $list;
         return $list;
     }
     }
 
 
-    public static function printGroup($current, $content, $showPrice = 1)
+    public static function printGroup($current, $content, $showPrice = 1, $fontSizeType = 0)
     {
     {
         //58mm的机器,一行打印16个汉字,32个字母
         //58mm的机器,一行打印16个汉字,32个字母
         $productPrice = $current['price'] ?? '';
         $productPrice = $current['price'] ?? '';
@@ -991,7 +991,11 @@ class OrderClass extends BaseClass
         } else {
         } else {
             $show = $name . ' ' . $count;
             $show = $name . ' ' . $count;
         }
         }
-        $content .= '<B>' . $show . '</B><BR>';
+        if ($fontSizeType == 0) {
+            $content .= '<B>' . $show . '</B><BR>';
+        } else {
+            $content .= $show . '<BR>';
+        }
         if ($showPrice == 1) {
         if ($showPrice == 1) {
             $content .= $productNum . '=' . $productPrice . '元<BR>';
             $content .= $productNum . '=' . $productPrice . '元<BR>';
         }
         }
@@ -1021,6 +1025,7 @@ class OrderClass extends BaseClass
         $shopId = $orderInfo['shopId'] ?? 0;
         $shopId = $orderInfo['shopId'] ?? 0;
         $shop = ShopClass::getById($shopId, true);
         $shop = ShopClass::getById($shopId, true);
         $sjId = $shop->sjId ?? 0;
         $sjId = $shop->sjId ?? 0;
+        $fontSizeType = $shop->fontSize ?? 0;
         $telephone = $shop->telephone ?? '';
         $telephone = $shop->telephone ?? '';
         $sj = SjClass::getById($sjId, true);
         $sj = SjClass::getById($sjId, true);
         $sjName = $sj->name ?? '';
         $sjName = $sj->name ?? '';
@@ -1095,7 +1100,7 @@ class OrderClass extends BaseClass
 
 
         if (isset($respond['product']) && !empty($respond['product'])) {
         if (isset($respond['product']) && !empty($respond['product'])) {
             foreach ($respond['product'] as $current) {
             foreach ($respond['product'] as $current) {
-                $content = self::printGroup($current, $content, $showPrice);
+                $content = self::printGroup($current, $content, $showPrice, $fontSizeType);
             }
             }
         }
         }