shish před 4 roky
rodič
revize
7424ba7c8a
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      app-hd/controllers/MtController.php

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

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