|
|
@@ -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();
|