2025-07-04 23:49:18 +00:00

21 lines
603 B
PHP
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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']);