|
|
@@ -123,7 +123,8 @@ class OrderClass extends BaseClass
|
|
|
$price = $respond['price'] ?? 0;
|
|
|
$currentPrice = bcadd($price, $sendCost, 2);
|
|
|
$data['prePrice'] = $currentPrice;
|
|
|
-
|
|
|
+ //默认生成订单时需要打单
|
|
|
+ $data['needPrint'] = isset($data['needPrint']) ?? dict::getDict('needPrint', 'need');
|
|
|
if (isset($data['modifyPrice'])) {
|
|
|
//商家打折,修改金额
|
|
|
$modifyPrice = $data['modifyPrice'] ?? 0;
|
|
|
@@ -446,7 +447,7 @@ class OrderClass extends BaseClass
|
|
|
foreach ($respond['product'] as $current) {
|
|
|
//58mm的机器,一行打印16个汉字,32个字母
|
|
|
$name = $current['name'] ?? '';
|
|
|
- $content .= $name.'<BR>';
|
|
|
+ $content .= $name . '<BR>';
|
|
|
$name = str_repeat(' ', 10);
|
|
|
|
|
|
$productNum = $current['num'] ?? '';
|