Просмотр исходного кода

结账在线支付方式 登记

shish 4 лет назад
Родитель
Сommit
231a1d8ff1
2 измененных файлов с 6 добавлено и 2 удалено
  1. 5 1
      biz-hd/purchase/classes/PurchaseClearClass.php
  2. 1 1
      common/components/payUtil.php

+ 5 - 1
biz-hd/purchase/classes/PurchaseClearClass.php

@@ -87,7 +87,7 @@ class PurchaseClearClass extends BaseClass
     }
 
     //第三方支付回调 ssh 2021.4.28
-    public static function thirdPay($payWay, $orderSn, $totalFee, $attach)
+    public static function thirdPay($payWay, $orderSn, $totalFee, $attach,$transactionId)
     {
         $info = self::getByCondition(['orderSn' => $orderSn], true);
         if (empty($info)) {
@@ -105,6 +105,10 @@ class PurchaseClearClass extends BaseClass
         $id = $info->id;
         $info = self::getLockById($id);
 
+        $info->onlinePay = dict::getDict('onlinePay', 'yes');
+        $info->thirdNo = $transactionId;
+        $info->save();
+
         self::complete($info, $payWay);
     }
 

+ 1 - 1
common/components/payUtil.php

@@ -44,7 +44,7 @@ class payUtil
                 break;
             case dict::getDict('capitalType', 'hdPurchaseClear', 'id'):
                 //零售结帐
-                PurchaseClearClass::thirdPay($payWay, $orderSn, $totalFee, $attach);
+                PurchaseClearClass::thirdPay($payWay, $orderSn, $totalFee, $attach,$transactionId);
                 break;
             case dict::getDict('capitalType', 'xhOrder', 'id'):
                 //花粉下单