|
|
@@ -236,8 +236,6 @@ class TestController extends BaseController
|
|
|
'orderSn' => 'CG26677404',
|
|
|
];
|
|
|
$response = $laResource->query($queryParams, 0);
|
|
|
- print_r($response);
|
|
|
- die;
|
|
|
if (isset($response['code']) && $response['code'] == 'BBS00000') {
|
|
|
$capitalType = dict::getDict('capitalType', 'xhPurchase', 'id');
|
|
|
$connection = Yii::$app->db;
|
|
|
@@ -260,9 +258,9 @@ class TestController extends BaseController
|
|
|
}
|
|
|
|
|
|
$attach = '';
|
|
|
- $payer_amount = $response['resp_data']['payer_amount'] ?? 0;
|
|
|
+ $total_amount = $response['resp_data']['total_amount'] ?? 0;
|
|
|
$orderSn = $response['resp_data']['out_trade_no'] ?? 0;
|
|
|
- $totalFee = $payer_amount / 100;
|
|
|
+ $totalFee = $total_amount / 100;
|
|
|
$transactionId = $response['resp_data']['trade_no'] ?? 0;
|
|
|
//echo $currentPayWay . ' ' . $capitalType . ' ' . $orderSn . ' ' . $totalFee . ' ' . $attach . ' ' . $transactionId;
|
|
|
payUtil::thirdPay($currentPayWay, $capitalType, $orderSn, $totalFee, $attach, $transactionId);
|