必须为绝对值

This commit is contained in:
iVampireSP.com 2022-09-01 23:46:42 +08:00
parent 9a32106246
commit 37d450cf91
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -81,6 +81,8 @@ public function cost($price = null)
$this->load('user');
$price = abs($price);
if ($this->user->balance < 10) {
$amount = 1;