Jelajahi Sumber

同时打印小票和标签

shish 1 tahun lalu
induk
melakukan
c530a57513
1 mengubah file dengan 15 tambahan dan 2 penghapusan
  1. 15 2
      biz-ghs/order/classes/OrderClass.php

+ 15 - 2
biz-ghs/order/classes/OrderClass.php

@@ -1993,12 +1993,25 @@ class OrderClass extends BaseClass
         $content .= "<BR>";
         $content .= "<BR>";
 
-        $ext = ShopExtClass::getByCondition(['shopId' => $shopId]);
-        $printSn = $ext['printSn'] ?? '';
+        $ext = ShopExtClass::getByCondition(['shopId' => $shopId], true);
+        $printSn = $ext->printSn ?? '';
         if (!empty($printSn)) {
             $p = new printUtil($printSn);
             $p->printMsg($content, $shop, $orderSn);
         }
+
+        /**************************如果是好多花的云仓还要再打一下标签纸*****************************/
+        $mainId = $shop->mainId;
+        if (getenv('YII_ENV') == 'production') {
+            $map = [65726];
+        } else {
+            $map = [644];
+        }
+        if (in_array($mainId, $map)) {
+            self::printLogisticsLabel($orderInfo, $shop, $ext);
+        }
+        /*************************如果是好多花的云仓还要再打一下标签纸******************************/
+
     }
 
     //打印数据 ssh 20210702