// 模块初始化
if ($module && $available) {
// 初始化模块
$request->module($module);
$config = self::init($module);
// 模块请求缓存检查
$request->cache($config['request_cache'], $config['request_cache_expire']);
} else {
throw new HttpException(404, 'module not exists:' . $module);
}
} else {
// 单一模块部署
$module = '';
$request->module($module);
}
// 当前模块路径
App::$modulePath = APP_PATH . ($module ? $module . DS : '');
USER | nginx |
HOME | /var/lib/nginx |
HTTP_HOST | xa-du.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | /goods-151.html |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.xa-du.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.18.66.126 |
REMOTE_PORT | 55068 |
REMOTE_ADDR | 44.213.80.203 |
SERVER_SOFTWARE | nginx/1.16.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /home/hosting_webs/xadu |
DOCUMENT_URI | /index.php/goods-151.html |
REQUEST_URI | /index.php/goods-151.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | |
SCRIPT_FILENAME | /home/hosting_webs/xadu/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php/goods-151.html |
REQUEST_TIME_FLOAT | 1711675224.0499 |
REQUEST_TIME | 1711675224 |
APP_PATH | /home/hosting_webs/xadu/application/ |
THINK_VERSION | 5.0.4 |
THINK_START_TIME | 1711675224.0503 |
THINK_START_MEM | 377432 |
EXT | .php |
DS | / |
THINK_PATH | /home/hosting_webs/xadu/thinkphp/ |
LIB_PATH | /home/hosting_webs/xadu/thinkphp/library/ |
CORE_PATH | /home/hosting_webs/xadu/thinkphp/library/think/ |
TRAIT_PATH | /home/hosting_webs/xadu/thinkphp/library/traits/ |
ROOT_PATH | /home/hosting_webs/xadu/ |
EXTEND_PATH | /home/hosting_webs/xadu/extend/ |
VENDOR_PATH | /home/hosting_webs/xadu/vendor/ |
RUNTIME_PATH | /home/hosting_webs/xadu/runtime/ |
LOG_PATH | /home/hosting_webs/xadu/runtime/log/ |
CACHE_PATH | /home/hosting_webs/xadu/runtime/cache/ |
TEMP_PATH | /home/hosting_webs/xadu/runtime/temp/ |
CONF_PATH | /home/hosting_webs/xadu/application/ |
CONF_EXT | .php |
ENV_PREFIX | PHP_ |
IS_CLI | false |
IS_WIN | false |