Explorar el Código

默认生成订单时需要打单

shish hace 5 años
padre
commit
77a75e3d83
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      biz-ghs/order/classes/OrderClass.php

+ 3 - 2
biz-ghs/order/classes/OrderClass.php

@@ -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'] ?? '';