|
|
@@ -1798,6 +1798,21 @@ class OrderClass extends BaseClass
|
|
|
$shopName = $shop->shopName ?? '';
|
|
|
$currentName = $shopName == '首店' ? $sjName : $sjName . ' ' . $shopName;
|
|
|
|
|
|
+ $ext = ShopExtClass::getByCondition(['shopId' => $shopId], true);
|
|
|
+ $printSn = $ext->printSn ?? '';
|
|
|
+
|
|
|
+ /**************************如果是好多花的云仓还要再打一下标签纸,多处要同步修改,关键词 hdh_yc *****************************/
|
|
|
+ $mainId = $shop->mainId;
|
|
|
+ if (getenv('YII_ENV') == 'production') {
|
|
|
+ $map = [65726, 58];
|
|
|
+ } else {
|
|
|
+ $map = [828,0];
|
|
|
+ }
|
|
|
+ if (in_array($mainId, $map)) {
|
|
|
+ self::printLogisticsLabel($orderInfo, $shop, $ext);
|
|
|
+ }
|
|
|
+ /**************************如果是好多花的云仓还要再打一下标签纸,多处要同步修改,关键词 hdh_yc *****************************/
|
|
|
+
|
|
|
$itemList = $showItem['list'] ?? [];
|
|
|
if (count($itemList) > 40) {
|
|
|
//超出数量的打印
|
|
|
@@ -1993,25 +2008,11 @@ class OrderClass extends BaseClass
|
|
|
$content .= "<BR>";
|
|
|
$content .= "<BR>";
|
|
|
|
|
|
- $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
|
|
|
@@ -2843,12 +2844,14 @@ XL;
|
|
|
|
|
|
public static function printLogisticsLabel($order, $shop, $ext)
|
|
|
{
|
|
|
+ /**************************如果是好多花的云仓还要再打一下标签纸,多处要同步修改,关键词 hdh_yc *****************************/
|
|
|
$mainId = $shop->mainId;
|
|
|
if (getenv('YII_ENV') == 'production') {
|
|
|
- $map = [65726];
|
|
|
+ $map = [65726,58];
|
|
|
} else {
|
|
|
- $map = [644];
|
|
|
+ $map = [828,0];
|
|
|
}
|
|
|
+ /**************************如果是好多花的云仓还要再打一下标签纸,多处要同步修改,关键词 hdh_yc *****************************/
|
|
|
|
|
|
$customId = $order->customId ?? 0;
|
|
|
$custom = CustomClass::getById($customId, true);
|
|
|
@@ -2907,6 +2910,7 @@ XL;
|
|
|
$content .= '<TEXT x="150" y="10" font="12" w="2" h="2" r="90">物流</TEXT>';
|
|
|
$content .= '<TEXT x="45" y="70" font="12" w="2" h="2" r="90">' . $currentName . ' ' . $telephone . '</TEXT>';
|
|
|
} else {
|
|
|
+ /**************************如果是好多花的云仓还要再打一下标签纸,多处要同步修改,关键词 hdh_yc *****************************/
|
|
|
$sameTimeIds = $order->sameTimeIds;
|
|
|
$num = 1;
|
|
|
if (!empty($sameTimeIds)) {
|
|
|
@@ -2922,6 +2926,7 @@ XL;
|
|
|
$content .= '<TEXT x="300" y="30" font="12" w="2" h="3" r="90">' . $customName . '</TEXT>';
|
|
|
$content .= '<TEXT x="190" y="10" font="12" w="1" h="2" r="90">' . $fullAddress . '</TEXT>';
|
|
|
$content .= '<TEXT x="120" y="10" font="12" w="2" h="2" r="90">' . $customMobile . '</TEXT>';
|
|
|
+ /**************************如果是好多花的云仓还要再打一下标签纸,多处要同步修改,关键词 hdh_yc *****************************/
|
|
|
}
|
|
|
$p->printLabelMsg($content);
|
|
|
return true;
|