shish 2 роки тому
батько
коміт
392cc9b9f4
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      app-ghs/controllers/TestController.php

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

@@ -315,6 +315,7 @@ class TestController extends BaseController
             try {
 
                 $postData = $response['resp_data'] ?? [];
+                $orderSn = $postData['out_trade_no'] ?? '';
                 $total_amount = $postData['total_amount'] ?? 0;
                 $account_type = $postData['account_type'] ?? '';
                 if (empty($account_type)) {
@@ -334,7 +335,7 @@ class TestController extends BaseController
                     noticeUtil::push('支付回调失败了,没有找到支付类型,orderSn:' . $orderSn, '15280215347');
                     util::end();
                 }
-                echo $currentPayWay.' '.$capitalType.' '.$orderSn.' '.$totalFee.' '.$transactionId;
+                echo $currentPayWay . ' ' . $capitalType . ' ' . $orderSn . ' ' . $totalFee . ' ' . $transactionId;
                 die;
                 $attach = '';
                 payUtil::thirdPay($currentPayWay, $capitalType, $orderSn, $totalFee, $attach, $transactionId);