if (is_callable([$instance, $action])) {
// 执行操作方法
$call = [$instance, $action];
} elseif (is_callable([$instance, '_empty'])) {
// 空操作
$call = [$instance, '_empty'];
$vars = [$action];
} else {
// 操作不存在
throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()');
}
Hook::listen('action_begin', $call);
return self::invokeMethod($call, $vars);
}
/**
* 初始化应用
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /index/team/index.html |
QUERY_STRING | |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_URL | /index/team/index.html |
REMOTE_PORT | 50526 |
SCRIPT_FILENAME | /www/wwwroot/www.touchhr.com/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/www.touchhr.com/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/www.touchhr.com/public |
REMOTE_ADDR | 44.204.125.111 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.62.105 |
SERVER_NAME | www.touchhr.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at www.touchhr.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin |
HTTP_HOST | www.touchhr.com |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
REDIRECT_PATH_INFO | index/team/index.html |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711692088.1194 |
REQUEST_TIME | 1711692088 |
PATH_INFO | index/team/index.html |
APP_PATH | /www/wwwroot/www.touchhr.com/public/../application/ |
BIND_MODULE | index |
THINK_VERSION | 5.0.3 |
THINK_START_TIME | 1711692088.1198 |
THINK_START_MEM | 380248 |
EXT | .php |
DS | / |
THINK_PATH | /www/wwwroot/www.touchhr.com/thinkphp/ |
LIB_PATH | /www/wwwroot/www.touchhr.com/thinkphp/library/ |
CORE_PATH | /www/wwwroot/www.touchhr.com/thinkphp/library/think/ |
TRAIT_PATH | /www/wwwroot/www.touchhr.com/thinkphp/library/traits/ |
ROOT_PATH | /www/wwwroot/www.touchhr.com/ |
EXTEND_PATH | /www/wwwroot/www.touchhr.com/extend/ |
VENDOR_PATH | /www/wwwroot/www.touchhr.com/vendor/ |
RUNTIME_PATH | /www/wwwroot/www.touchhr.com/runtime/ |
LOG_PATH | /www/wwwroot/www.touchhr.com/runtime/log/ |
CACHE_PATH | /www/wwwroot/www.touchhr.com/runtime/cache/ |
TEMP_PATH | /www/wwwroot/www.touchhr.com/runtime/temp/ |
CONF_PATH | /www/wwwroot/www.touchhr.com/public/../application/ |
CONF_EXT | .php |
ENV_PREFIX | PHP_ |
IS_CLI | false |
IS_WIN | false |
__ROOT__ |