|
|
@@ -647,16 +647,17 @@ class TestController extends BaseController
|
|
|
'tradeNo' => '66217688986441',
|
|
|
];
|
|
|
$response = $laResource->query($queryParams, 1);
|
|
|
- echo "<pre>";
|
|
|
- print_r($response);
|
|
|
- die;
|
|
|
+// echo "<pre>";
|
|
|
+// print_r($response);
|
|
|
+
|
|
|
+ $data = $response['resp_data']??[];
|
|
|
|
|
|
$payWay = 1;
|
|
|
- $orderSn = $response['out_trade_no'] ?? '';
|
|
|
- $trade_amount = $response['trade_amount'] ?? 0;
|
|
|
+ $orderSn = $data['out_trade_no'] ?? '';
|
|
|
+ $trade_amount = $data['trade_amount'] ?? 0;
|
|
|
$totalFee = $trade_amount / 100;
|
|
|
$attach = '';
|
|
|
- $transactionId = $response['trade_no'] ?? 0;
|
|
|
+ $transactionId = $data['trade_no'] ?? 0;
|
|
|
PurchaseClearClass::thirdPay($payWay, $orderSn, $totalFee, $attach, $transactionId);
|
|
|
}
|
|
|
|