|
@@ -910,20 +910,20 @@ class OrderClass extends BaseClass
|
|
|
{
|
|
{
|
|
|
//58mm的机器,一行打印16个汉字,32个字母
|
|
//58mm的机器,一行打印16个汉字,32个字母
|
|
|
$name = $current['name'] ?? '';
|
|
$name = $current['name'] ?? '';
|
|
|
- $content .= '<B>'.$name . '</B><BR>';
|
|
|
|
|
|
|
+ $content .= $name . '<BR>';
|
|
|
|
|
|
|
|
$productNum = $current['num'] ?? '';
|
|
$productNum = $current['num'] ?? '';
|
|
|
- $blankNum = bcsub(17, strlen($productNum));
|
|
|
|
|
|
|
+ $blankNum = bcsub(17, strlen($productNum)*2);
|
|
|
if ($blankNum > 0) {
|
|
if ($blankNum > 0) {
|
|
|
$productNum = $productNum . str_repeat(' ', $blankNum);
|
|
$productNum = $productNum . str_repeat(' ', $blankNum);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$productPrice = $current['price'] ?? '';
|
|
$productPrice = $current['price'] ?? '';
|
|
|
- $blankNum = bcsub(12, strlen($productPrice));
|
|
|
|
|
|
|
+ $blankNum = bcsub(12, strlen($productPrice)*2);
|
|
|
if ($blankNum > 0) {
|
|
if ($blankNum > 0) {
|
|
|
$productPrice = $productPrice . str_repeat(' ', $blankNum);
|
|
$productPrice = $productPrice . str_repeat(' ', $blankNum);
|
|
|
}
|
|
}
|
|
|
- $content .= '<B>'.$productNum . ' ' . $productPrice . '</B>';
|
|
|
|
|
|
|
+ $content .= "<B>" . $productNum . ' ' . $productPrice . '</B><BR>';
|
|
|
return $content;
|
|
return $content;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -996,19 +996,20 @@ class OrderClass extends BaseClass
|
|
|
//58mm的机器,一行打印16个汉字,32个字母
|
|
//58mm的机器,一行打印16个汉字,32个字母
|
|
|
$name = $current['name'] ?? '';
|
|
$name = $current['name'] ?? '';
|
|
|
$content .= $name . '<BR>';
|
|
$content .= $name . '<BR>';
|
|
|
|
|
+ $name = str_repeat(' ', 10);
|
|
|
|
|
|
|
|
$productNum = $current['num'] ?? '';
|
|
$productNum = $current['num'] ?? '';
|
|
|
- $blankNum = bcsub(17, strlen($productNum));
|
|
|
|
|
|
|
+ $blankNum = bcsub(12, strlen($productNum));
|
|
|
if ($blankNum > 0) {
|
|
if ($blankNum > 0) {
|
|
|
$productNum = $productNum . str_repeat(' ', $blankNum);
|
|
$productNum = $productNum . str_repeat(' ', $blankNum);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$productPrice = $current['price'] ?? '';
|
|
$productPrice = $current['price'] ?? '';
|
|
|
- $blankNum = bcsub(12, strlen($productPrice));
|
|
|
|
|
|
|
+ $blankNum = bcsub(7, strlen($productPrice));
|
|
|
if ($blankNum > 0) {
|
|
if ($blankNum > 0) {
|
|
|
$productPrice = $productPrice . str_repeat(' ', $blankNum);
|
|
$productPrice = $productPrice . str_repeat(' ', $blankNum);
|
|
|
}
|
|
}
|
|
|
- $content .= "<B>" . $productNum . ' ' . $productPrice . '</B>';
|
|
|
|
|
|
|
+ $content .= $name . " " . $productNum . ' ' . $productPrice . '<BR>';
|
|
|
}
|
|
}
|
|
|
$content .= '--------------------------------<BR>';
|
|
$content .= '--------------------------------<BR>';
|
|
|
}
|
|
}
|