shish 1 год назад
Родитель
Сommit
234595e6af
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app-ghs/controllers/TestController.php

+ 2 - 2
app-ghs/controllers/TestController.php

@@ -654,8 +654,8 @@ class TestController extends BaseController
 
         $payWay = 1;
         $orderSn = $data['out_trade_no'] ?? '';
-        $trade_amount = $data['trade_amount'] ?? 0;
-        $totalFee = $trade_amount / 100;
+        $total_amount = $data['total_amount'] ?? 0;
+        $totalFee = $total_amount / 100;
         $attach = '';
         $transactionId = $data['trade_no'] ?? 0;
         PurchaseClearClass::thirdPay($payWay, $orderSn, $totalFee, $attach, $transactionId);