wesmiler hace 1 semana
padre
commit
9105f5851e
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      app/Services/Api/BalanceLogService.php

+ 4 - 3
app/Services/Api/BalanceLogService.php

@@ -196,7 +196,8 @@ class BalanceLogService extends BaseService
             }
         }else{
             $accountName = '微信支付';
-            $accountRemark = '微信零钱';
+            $account = '微信零钱';
+            $accountRemark = '';
         }
 
 
@@ -221,12 +222,12 @@ class BalanceLogService extends BaseService
         }
 
         // 计算实际到账金额
-        $fee = 0;
         $actualMoney = $money;
         if($accountType==2){
             // 结算比例
             $rate = ConfigService::make()->getConfigByCode('withdraw_2_rate',0);
             $rate = $rate>0 && $rate<=100? $rate : 100;
+            $actualMoney = moneyFormat($actualMoney * $rate/100, 2);
         }
 
         // 手续费
@@ -285,7 +286,7 @@ class BalanceLogService extends BaseService
             'after_money' => moneyFormat(max(0, $balance - $money), 2),
             'date' => date('Y-m-d'),
             'create_time' => time(),
-            'remark' => $accountTypeName."-提现到{$accountRemark}",
+            'remark' => $accountTypeName."-提现到{$account}",
             'status' => 1,
             'mark' => 1,
         ];