shish 1 рік тому
батько
коміт
9c29315c9b
1 змінених файлів з 8 додано та 4 видалено
  1. 8 4
      biz-ghs/custom/classes/CustomClass.php

+ 8 - 4
biz-ghs/custom/classes/CustomClass.php

@@ -186,10 +186,6 @@ class CustomClass extends BaseClass
         $customShopSjId = $customShop->sjId ?? 0;
         $customShopMainId = $customShop->mainId ?? 0;
 
-        $payMap = dict::getDict('payWayName');
-        $payName = $payMap[$payWay] ?? '';
-        $rechargeEvent = $payName . '充值';
-
         $custom->balance = bcadd($custom->balance, $amount, 2);
         $custom->save();
         $orderSn = orderSn::getGhsCustomRechargeSn();
@@ -200,6 +196,14 @@ class CustomClass extends BaseClass
         $staffName = $staff->name ?? '';
         $remark = $params['remark'] ?? '';
         $rechargeType = $params['rechargeType'] ?? 0;
+
+        $payMap = dict::getDict('payWayName');
+        $payName = $payMap[$payWay] ?? '';
+        $rechargeEvent = $payName . '充值';
+        if($rechargeType == 1){
+            $rechargeEvent = '偏后返充';
+        }
+
         $cData = [
             'orderSn' => $orderSn,
             'onlinePay' => 1,