seven 2 napja
szülő
commit
ca442de36a
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      app/Services/WithdrawService.php

+ 1 - 1
app/Services/WithdrawService.php

@@ -470,7 +470,7 @@ class WithdrawService
         // 汇率
         $rate = Config::where('field', 'exchange_rate_rmb')->first()->val??1;
         $temp = floatval($wallet->available_balance);
-        $amount = bcmul($temp, $rate, 2);
+        $amount = bcdiv($temp, $rate, 2);
         $text = "请发送提现金额\n";
         $text .= "💰 当前余额{$temp} RMB\n";
         $text .= "⚠️汇率:1 USDT = {$rate} RMB\n";