初始上传

This commit is contained in:
2026-04-04 17:27:12 +08:00
parent 4d80d28eb4
commit b7e11774ee
11191 changed files with 1588469 additions and 0 deletions

28
app/exception/ApiException.php Executable file
View File

@@ -0,0 +1,28 @@
<?php
declare ( strict_types = 1 );
namespace app\exception;
class ApiException extends BaseException
{
protected $code = -1;
protected $message = '';
public function __construct($code, $message)
{
$this->code = $code;
$this->message = !empty($message) ? $message : 'API接口调用失败';
}
public function getErrorCode()
{
return $this->code;
}
public function getErrorMessage()
{
return $this->message;
}
}
?>

11
app/exception/BaseException.php Executable file
View File

@@ -0,0 +1,11 @@
<?php
declare (strict_types=1);
namespace app\exception;
class BaseException extends \RuntimeException
{
}
?>