必须为绝对值
This commit is contained in:
parent
9a32106246
commit
37d450cf91
@ -81,6 +81,8 @@ public function cost($price = null)
|
||||
|
||||
$this->load('user');
|
||||
|
||||
$price = abs($price);
|
||||
|
||||
|
||||
if ($this->user->balance < 10) {
|
||||
$amount = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user