seven 2 일 전
부모
커밋
ca442de36a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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";