Răsfoiți Sursa

新制作单提示

shish 4 ani în urmă
părinte
comite
412110b44d

+ 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);