撤销
This commit is contained in:
parent
03863827cb
commit
aa0dd7582d
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user