shish %!s(int64=4) %!d(string=hai) anos
pai
achega
7424ba7c8a
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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();