$this->request->setAction($actionName);
} catch (ReflectionException $e) {
$reflect = new ReflectionMethod($instance, '__call');
$vars = [$action, $vars];
$this->request->setAction($action);
}
} else {
// 操作不存在
throw new HttpException(404, 'method not exists:' . get_class($instance) . '->' . $action . '()');
}
$data = $this->app->invokeReflectMethod($instance, $reflect, $vars);
return $this->autoResponse($data);
});
}
protected function parseActions($actions)
0 | id |
1 | 3 |
USER | www |
HOME | /home/www |
HTTP_X_MICROSOFTAJAX | Delta=true |
HTTP_USER_AGENT | Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0) |
HTTP_CONTENT_TYPE | application/x-www-form-urlencoded; charset=utf-8 |
HTTP_CACHE_CONTROL | no-cache |
HTTP_ACCEPT_LANGUAGE | en-US,en;q=0.5 |
HTTP_ACCEPT_ENCODING | gzip, deflate |
HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
HTTP_X_APPLE_STORE_FRONT | 143444,12 |
HTTP_X_APPLE_TZ | 0 |
HTTP_REFERER | https://www.baidu.com/search/spider.htm |
HTTP_HOST | www.l1m.net |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | l1m.net |
SERVER_PORT | 80 |
SERVER_ADDR | 172.21.243.222 |
REMOTE_PORT | 37870 |
REMOTE_ADDR | 45.41.88.246 |
SERVER_SOFTWARE | nginx/1.20.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/new.l1m.net/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index/Index/casedetail.html?0=id&1=3 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | application/x-www-form-urlencoded; charset=utf-8 |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index/Index/casedetail.html&0=id&1=3 |
SCRIPT_FILENAME | /www/wwwroot/new.l1m.net/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1719384626.7936 |
REQUEST_TIME | 1719384626 |