shish il y a 3 ans
Parent
commit
1a859a298e
1 fichiers modifiés avec 9 ajouts et 6 suppressions
  1. 9 6
      app-ghs/controllers/OrderController.php

+ 9 - 6
app-ghs/controllers/OrderController.php

@@ -810,14 +810,17 @@ class OrderController extends BaseController
                 }
                 //订单生成时唤起在线打印
                 if (isset($order->needPrint) && $order->needPrint == dict::getDict('needPrint', 'need')) {
-                    OrderClass::onlinePrint($order);
-                    $order->printNum += 1;
-                    $order->save();
+                    if ($order->status != 1 && $order->status != 5) {
+                        OrderClass::onlinePrint($order);
+                        $order->printNum += 1;
+                        $order->save();
+                    }
+                }
+                if ($order->status != 1 && $order->status != 5) {
+                    //花店采购供货商端收到通知
+                    NoticeClass::ghsNewOrderNotice($order);
                 }
-                //花店采购供货商端收到通知
-                NoticeClass::ghsNewOrderNotice($order);
             }
-
             util::success($return);
         } catch (\Exception $e) {
             $transaction->rollBack();