|
|
@@ -1315,6 +1315,14 @@ class OrderClass extends BaseClass
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public static function onlinePrintOver($itemList,$orderInfo,$currentName)
|
|
|
+ {
|
|
|
+ echo $currentName;
|
|
|
+ print_r($orderInfo);
|
|
|
+ print_r($itemList);
|
|
|
+ die;
|
|
|
+ }
|
|
|
+
|
|
|
//云打印 ssh 20210709
|
|
|
public static function onlinePrint($orderInfo, $showPrice = 1)
|
|
|
{
|
|
|
@@ -1369,6 +1377,14 @@ class OrderClass extends BaseClass
|
|
|
$shopName = $shop->shopName ?? '';
|
|
|
$currentName = $shopName == '首店' ? $sjName : $sjName . ' ' . $shopName;
|
|
|
|
|
|
+ $itemList = $showItem['list']??[];
|
|
|
+ if(count($itemList)>50){
|
|
|
+ //超出花材的打印
|
|
|
+ self::onlinePrintOver($itemList,$orderInfo,$currentName);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
$fromType = $orderInfo['fromType'] ?? dict::getDict('fromType', 'shop');
|
|
|
$fromTypeMap = dict::getDict('fromTypeMap');
|
|
|
$fromTypeName = $fromTypeMap[$fromType] ?? '门店';
|