easypanel/framework/api.php
2023-08-25 10:53:15 +08:00

33 lines
No EOL
442 B
PHP

<?php
class API
{
protected $old_info;
protected $new_info;
protected $RET_SVR_BUSY = false;
protected $RET_PARAM_ER = false;
protected $RET_VALUE_MINUS = -301;
public function __construct()
{
}
public function __destruct()
{
}
protected function mcResult($ret)
{
if ($ret === 0 - 1) {
return false;
}
if ($ret === 0 - 2) {
return $this->RET_SVR_BUSY;
}
return $ret;
}
}
?>