必须为绝对值
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;
|
||||
@ -134,9 +136,9 @@ public function cost($price = null)
|
||||
|
||||
/**
|
||||
* 创建主机
|
||||
*
|
||||
*
|
||||
* 在此之后,所有的主机都将由 module 创建,并且主机的数据仅被用作计费。
|
||||
*
|
||||
*
|
||||
* 废弃
|
||||
* @deprecated
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user