必须为绝对值

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;
@ -134,9 +136,9 @@ public function cost($price = null)
/**
* 创建主机
*
*
* 在此之后,所有的主机都将由 module 创建,并且主机的数据仅被用作计费。
*
*
* 废弃
* @deprecated
*/