shish 2 lat temu
rodzic
commit
b68903e7cb

+ 2 - 2
app-hd/controllers/NoticeController.php

@@ -49,13 +49,13 @@ class NoticeController extends PublicController
 
         $postData = json_decode($postStr, true);
         $orderSn = $postData['out_trade_no'] ?? '';
-        $payer_amount = $postData['payer_amount'] ?? 0;
+        $total_amount = $postData['total_amount'] ?? 0;
         $account_type = $postData['account_type'] ?? '';
         if (empty($account_type)) {
             noticeUtil::push('支付回调失败了,没有找到钱包类型,请注意,orderSn:' . $orderSn, '15280215347');
             util::end();
         }
-        $totalFee = $payer_amount / 100;
+        $totalFee = $total_amount / 100;
         $transactionId = $postData['trade_no'] ?? 0;
 
         if ($return == false) {

+ 4 - 4
app-mall/controllers/NoticeController.php

@@ -111,13 +111,13 @@ class NoticeController extends PublicController
 
         $postData = json_decode($postStr, true);
         $orderSn = $postData['out_trade_no'] ?? '';
-        $payer_amount = $postData['payer_amount'] ?? 0;
+        $total_amount = $postData['total_amount'] ?? 0;
         $account_type = $postData['account_type'] ?? '';
         if (empty($account_type)) {
             noticeUtil::push('支付回调失败了,没有找到钱包类型,请注意,orderSn:' . $orderSn, '15280215347');
             util::end();
         }
-        $totalFee = $payer_amount / 100;
+        $totalFee = $total_amount / 100;
         $transactionId = $postData['trade_no'] ?? 0;
 
         if ($return == false) {
@@ -403,8 +403,8 @@ class NoticeController extends PublicController
             noticeUtil::push('收银台支付回调失败了,没有找到钱包类型,请注意,orderSn:' . $orderSn, '15280215347');
             util::end();
         }
-        $payer_amount = $orderTradeInfo['payer_amount'] ?? 0;
-        $totalFee = $payer_amount / 100;
+        $total_amount = $orderTradeInfo['total_amount'] ?? 0;
+        $totalFee = $total_amount / 100;
         if ($totalFee <= 0) {
             noticeUtil::push('收银台支付回调验证失败了,金额错误,请注意,orderSn:' . $orderSn, '15280215347');
             util::end();