$this->app['hook']->listen('module_init');
try {
// 实例化控制器
$instance = $this->app->controller($this->controller,
$this->rule->getConfig('url_controller_layer'),
$this->rule->getConfig('controller_suffix'),
$this->rule->getConfig('empty_controller'));
} catch (ClassNotFoundException $e) {
throw new HttpException(404, 'controller not exists:' . $e->getClass());
}
$this->app['middleware']->controller(function (Request $request, $next) use ($instance) {
// 获取当前操作名
$action = $this->actionName . $this->rule->getConfig('action_suffix');
if (is_callable([$instance, $action])) {
// 执行操作方法
$call = [$instance, $action];
REDIRECT_STATUS | 200 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | old.dikma.com.cn |
PATH | C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\Administrator\AppData\Local\Programs\Python\Python310;C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Scripts;C:\wamp\bin\php\php5.6.40\php.exe;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps |
SystemRoot | C:\Windows |
COMSPEC | C:\Windows\system32\cmd.exe |
PATHEXT | .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC |
WINDIR | C:\Windows |
SERVER_SIGNATURE | <address>Apache/2.4.9 (Win64) OpenSSL/1.0.2q PHP/5.6.40 Server at old.dikma.com.cn Port 80</address> |
SERVER_SOFTWARE | Apache/2.4.9 (Win64) OpenSSL/1.0.2q PHP/5.6.40 |
SERVER_NAME | old.dikma.com.cn |
SERVER_ADDR | 118.190.98.55 |
SERVER_PORT | 80 |
REMOTE_ADDR | 3.92.84.196 |
DOCUMENT_ROOT | C:/wamp/www/lims/public |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | C:/wamp/www/lims/public |
SERVER_ADMIN | admin@dikma.com.cn |
SCRIPT_FILENAME | C:/wamp/www/lims/public/index.php |
REMOTE_PORT | 40988 |
REDIRECT_URL | /goods/index/pid/3698.html |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /goods/index/pid/3698.html |
SCRIPT_NAME | /index.php |
PATH_INFO | /goods/index/pid/3698.html |
PATH_TRANSLATED | redirect:\index.php\goods\index\pid\3698.html\index\pid\3698.html |
PHP_SELF | /index.php/goods/index/pid/3698.html |
REQUEST_TIME_FLOAT | 1711727796.251 |
REQUEST_TIME | 1711727796 |