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