shish 2 lat temu
rodzic
commit
eac9c9e085
1 zmienionych plików z 3 dodań i 4 usunięć
  1. 3 4
      app-ghs/controllers/TestController.php

+ 3 - 4
app-ghs/controllers/TestController.php

@@ -262,10 +262,9 @@ class TestController extends BaseController
                 $orderSn = $response['resp_data']['out_trade_no'] ?? 0;
                 $totalFee = $payer_amount / 100;
                 $transactionId = $response['resp_data']['trade_no'] ?? 0;
-                echo $currentPayWay . ' ' . $capitalType . ' ' . $orderSn . ' ' . $totalFee . ' ' . $attach . ' ' . $transactionId;
-                die;
-                //payUtil::thirdPay($currentPayWay, $capitalType, $orderSn, $totalFee, $attach, $transactionId);
-                //$transaction->commit();
+                //echo $currentPayWay . ' ' . $capitalType . ' ' . $orderSn . ' ' . $totalFee . ' ' . $attach . ' ' . $transactionId;
+                payUtil::thirdPay($currentPayWay, $capitalType, $orderSn, $totalFee, $attach, $transactionId);
+                $transaction->commit();
                 echo 'OK';
             } catch (\Exception $e) {
                 $transaction->rollBack();