shish 4 年 前
コミット
7424ba7c8a
1 ファイル変更3 行追加1 行削除
  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');
             $hasPay = dict::getDict('hasPay', 'payed');
             $order = OrderService::createFinishOrder($orderData, $custom, $hasPay);
             $order = OrderService::createFinishOrder($orderData, $custom, $hasPay);
+
+            $transaction->commit();
+
             noticeUtil::push("101010", '15280215347');
             noticeUtil::push("101010", '15280215347');
             //新制作单提示
             //新制作单提示
             $shopExt = ShopExtClass::getByCondition(['shopId' => $shopId], true);
             $shopExt = ShopExtClass::getByCondition(['shopId' => $shopId], true);
             ShopExtClass::newWorkRemind($shopExt, $order);
             ShopExtClass::newWorkRemind($shopExt, $order);
 
 
-            $transaction->commit();
             return Json::encode(['data' => 'ok']);
             return Json::encode(['data' => 'ok']);
         } catch (\Exception $e) {
         } catch (\Exception $e) {
             $transaction->rollBack();
             $transaction->rollBack();