Browse Source

付款成功

shish 3 years ago
parent
commit
8fb1eef4f5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      console/controllers/HdOrderController.php

+ 2 - 0
console/controllers/HdOrderController.php

@@ -60,6 +60,7 @@ class HdOrderController extends Controller
                             $order->save();
                             $attach = '';
                             payUtil::thirdPay($payWay, $capitalType, $orderSn, $totalFee, $attach, $transactionId);
+                            $transaction->commit();
 
                             //打印小票和语音播报
                             $newOrder = OrderClass::getById($id, true);
@@ -125,6 +126,7 @@ class HdOrderController extends Controller
 
                         $attach = '';
                         payUtil::thirdPay($payWay, $capitalType, $orderSn, $totalFee, $attach, $transactionId);
+                        $transaction->commit();
 
                         //打印小票和语音播报
                         $newOrder = OrderClass::getById($id, true);