21 lines
603 B
PHP
21 lines
603 B
PHP
|
<?php
|
|||
|
// 配置文件
|
|||
|
|
|||
|
// MCSManager API的基本URL
|
|||
|
define('CONFIG_MCSM_API_URL', 'http://http://114.66.55.103:23333'); // 替换为你的MCSManager API地址
|
|||
|
|
|||
|
// 默认的API超时时间(秒)
|
|||
|
define('CONFIG_API_TIMEOUT', 10);
|
|||
|
|
|||
|
// 错误代码映射
|
|||
|
define('CONFIG_API_SUCCESS', 200);
|
|||
|
define('CONFIG_API_BAD_REQUEST', 400);
|
|||
|
define('CONFIG_API_FORBIDDEN', 403);
|
|||
|
define('CONFIG_API_INTERNAL_ERROR', 500);
|
|||
|
|
|||
|
// 日志配置
|
|||
|
define('CONFIG_LOG_ENABLED', true);
|
|||
|
define('CONFIG_LOG_FILE', __DIR__ . '/app.log');
|
|||
|
|
|||
|
// 允许的请求方法
|
|||
|
define('CONFIG_ALLOWED_METHODS', ['GET', 'POST', 'PUT', 'DELETE']);
|