shish 1 rok temu
rodzic
commit
1983973cf5
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4 3
      biz-hd/refund/classes/HdRefundClass.php

+ 4 - 3
biz-hd/refund/classes/HdRefundClass.php

@@ -38,13 +38,14 @@ class HdRefundClass extends BaseClass
         ];
         $laResource = new Lakala($params);
         $refundReason = '';
-        $aliParams = [
+        $thirdNo = $order->thirdNo ?? '';
+        $backParams = [
             'refundSn' => $refundSn,
-            'orderSn' => $xsOrderSn,
+            'thirdNo' => $thirdNo,
             'refundAmount' => $refundFee,
             'refundReason' => $refundReason,
         ];
-        $response = $laResource->refund($aliParams);
+        $response = $laResource->refund($backParams);
         if (!isset($response['code']) || $response['code'] != 'BBS00000') {
             $errMsg = $response['msg'] ?? '';
             return ['status' => 0, 'msg' => $errMsg];