改进 金额重置
This commit is contained in:
parent
df73ceea1b
commit
8030f73933
@ -316,6 +316,11 @@ public function cost($amount = null, $auto = true): bool
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 如果太小,则重置为 0.9999
|
||||||
|
if ($real_price < 0.9999) {
|
||||||
|
$real_price = 0.9999;
|
||||||
|
}
|
||||||
|
|
||||||
$real_price = round($real_price ?? 0, 4);
|
$real_price = round($real_price ?? 0, 4);
|
||||||
|
|
||||||
$transaction = new Transaction();
|
$transaction = new Transaction();
|
||||||
|
Loading…
Reference in New Issue
Block a user