This commit is contained in:
iVampireSP.com 2022-11-19 13:11:22 +08:00
parent 03863827cb
commit aa0dd7582d
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -276,19 +276,16 @@ public function addLog($type = 'drops', float $amount = 0)
// 换成 余额 // 换成 余额
// 如果小于 0.00,则不四舍五入 // 如果小于 0.00,则不四舍五入
$c = $amount / $rate; // $c = $amount / $rate;
//
// if ($c > 0.01) {
// $amount = $amount / $rate;
// }
if ($c > 0.01) { $amount = $amount / $rate;
$amount = $amount / $rate;
}
} }
$amount = round($amount, 2); $amount = round($amount, 2);
Log::debug('addLog', [
'amount' => $amount,
'rate' => $rate,
'commission' => $commission,
]);
$should_amount = round($amount * $commission, 2); $should_amount = round($amount * $commission, 2);