#0 [0]HttpException in helper.php line 53

文章不存在!

  1. * @param integer|Response $code 状态码 或者 Response对象实例
  2. * @param string $message 错误信息
  3. * @param array $header 参数
  4. */
  5. function abort($code, string $message = '', array $header = [])
  6. {
  7. if ($code instanceof Response) {
  8. throw new HttpResponseException($code);
  9. } else {
  10. throw new HttpException($code, $message, null, $header);
  11. }
  12. }
  13. }
  14. if (!function_exists('app')) {
  15. /**
  16. * 快速获取容器中的实例 支持依赖注入
  17. * @param string $name 类名或标识 默认获取当前应用实例
  18. * @param array $args 参数

Call Stack

  1. in helper.php line 53
  2. at abort(404, '文章不存在!') in ArticleController.php line 39
  3. at ArticleController->index()
  4. at ReflectionMethod->invokeArgs(object(ArticleController), []) in Container.php line 343
  5. at Container->invokeReflectMethod(object(ArticleController), object(ReflectionMethod), ['id' => '180', 'cid' => '2']) in Controller.php line 137
  6. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  7. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  8. at Pipeline->then(object(Closure)) in Controller.php line 140
  9. at Controller->exec() in Dispatch.php line 89
  10. at Dispatch->run() in Route.php line 772
  11. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  12. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  13. at Pipeline->then(object(Closure)) in Route.php line 773
  14. at Route->dispatch(object(Request), object(Closure)) in Http.php line 217
  15. at Http->dispatchToRoute(object(Request)) in Http.php line 207
  16. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  17. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  18. at SessionInit->handle(object(Request), object(Closure))
  19. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  20. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  21. at Pipeline->think\{closure}(object(Request)) in TraceDebug.php line 71
  22. at TraceDebug->handle(object(Request), object(Closure))
  23. at call_user_func([object(TraceDebug), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  24. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  25. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  26. at Pipeline->then(object(Closure)) in Http.php line 208
  27. at Http->runWithRequest(object(Request)) in Http.php line 171
  28. at Http->run() in index.php line 32

Environment Variables

GET Data
id 180
cid 2
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER nobody
HOME /
HTTP_HOST www.omforum.cn
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
REDIRECT_STATUS 200
SERVER_NAME wh-nxfz655k67gd9p6thfb.my3w.com
SERVER_PORT 80
SERVER_ADDR 172.19.6.91
REMOTE_PORT 40520
REMOTE_ADDR 54.235.6.60
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /data/user/htdocs/public
DOCUMENT_URI /index.php
REQUEST_URI /portal/article/index.html?id=180&cid=2
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//portal/article/index.html&id=180&cid=2
PATH_INFO
SCRIPT_FILENAME /data/user/htdocs/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710842592.2156
REQUEST_TIME 1710842592
0.057128s