Przeglądaj źródła

结账在线支付方式 登记

shish 4 lat temu
rodzic
commit
231a1d8ff1

+ 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'):
                 //花粉下单