shish 4 лет назад
Родитель
Сommit
412110b44d
2 измененных файлов с 8 добавлено и 2 удалено
  1. 6 1
      app-hd/controllers/MtController.php
  2. 2 1
      app-hd/controllers/OrderController.php

+ 6 - 1
app-hd/controllers/MtController.php

@@ -252,7 +252,12 @@ class MtController extends PublicController
                 'thirdOrderId' => $mtOrderId,
             ];
             $hasPay = dict::getDict('hasPay', 'payed');
-            OrderService::createFinishOrder($orderData, $custom, $hasPay);
+            $order = OrderService::createFinishOrder($orderData, $custom, $hasPay);
+
+            //新制作单提示
+            $shopExt = ShopExtClass::getByCondition(['shopId' => $shopId], true);
+            ShopExtClass::newWorkRemind($shopExt, $order);
+
             $transaction->commit();
             return Json::encode(['data' => 'ok']);
         } catch (\Exception $e) {

+ 2 - 1
app-hd/controllers/OrderController.php

@@ -449,7 +449,8 @@ class OrderController extends BaseController
                     ShopExtClass::pleasePayReport($order);
                 }
             }
-            //制作台和美团制作台的新制作单提示
+
+            //新制作单提示
             $shopExt = ShopExtClass::getByCondition(['shopId' => $this->shopId], true);
             ShopExtClass::newWorkRemind($shopExt, $order);