shish 5 лет назад
Родитель
Сommit
61b2a4382c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      biz-ghs/order/classes/OrderClass.php

+ 1 - 1
biz-ghs/order/classes/OrderClass.php

@@ -124,7 +124,7 @@ class OrderClass extends BaseClass
         $currentPrice = bcadd($price, $sendCost, 2);
         $currentPrice = bcadd($price, $sendCost, 2);
         $data['prePrice'] = $currentPrice;
         $data['prePrice'] = $currentPrice;
         //默认生成订单时需要打单
         //默认生成订单时需要打单
-        $data['needPrint'] = isset($data['needPrint']) ?? dict::getDict('needPrint', 'need');
+        $data['needPrint'] = $data['needPrint'] ?? dict::getDict('needPrint', 'need');
         if (isset($data['modifyPrice'])) {
         if (isset($data['modifyPrice'])) {
             //商家打折,修改金额
             //商家打折,修改金额
             $modifyPrice = $data['modifyPrice'] ?? 0;
             $modifyPrice = $data['modifyPrice'] ?? 0;