seven 2 дней назад
Родитель
Сommit
0f565900c0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Services/WithdrawService.php

+ 1 - 1
app/Services/WithdrawService.php

@@ -346,7 +346,7 @@ class WithdrawService
         $withdraw->to_account = $real;
         $withdraw->address = $address;
         $withdraw->status = 0;
-        $withdraw->after_balance = $wallet->available_balance;
+        $withdraw->after_balance = bcdiv($wallet->available_balance,$rate,2);
         $withdraw->save();
         $bl->related_id = $withdraw->id;
         $bl->save();