#0 [0]Exception in Docs.php line 29

文章不存在

  1. ]);
  2. }
  3. //文档详情
  4. public function detail()
  5. {
  6. $aid = input('aid');
  7. $article = ArticleModel::find($aid);
  8. if (empty($article)){
  9. throw new Exception('文章不存在');
  10. }
  11. $articles[0] = ArticleModel::where("group", "distr")->where("type", "0")->limit(0,6)->select();
  12. $articles[1] = ArticleModel::where("group", "pack")->where("type", "0")->limit(0,6)->select();
  13. return view()->assign([
  14. 'aid'=>$aid,
  15. 'articles'=>$articles,
  16. 'article'=>$article
  17. ]);
  18. }

Call Stack

  1. in Docs.php line 29
  2. at Docs->detail()
  3. at ReflectionMethod->invokeArgs() in Container.php line 344
  4. at Container->invokeReflectMethod() in Controller.php line 110
  5. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  6. at Pipeline->think\{closure}() in Pipeline.php line 66
  7. at Pipeline->then() in Controller.php line 113
  8. at Controller->exec() in Dispatch.php line 90
  9. at Dispatch->run() in Route.php line 785
  10. at Route->think\{closure}() in Pipeline.php line 59
  11. at Pipeline->think\{closure}() in Pipeline.php line 66
  12. at Pipeline->then() in Route.php line 786
  13. at Route->dispatch() in Http.php line 216
  14. at Http->dispatchToRoute() in Http.php line 206
  15. at Http->think\{closure}() in Pipeline.php line 59
  16. at Pipeline->think\{closure}() in MultiApp.php line 71
  17. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  18. at Pipeline->think\{closure}() in Pipeline.php line 66
  19. at Pipeline->then() in MultiApp.php line 72
  20. at MultiApp->handle()
  21. at call_user_func() in Middleware.php line 142
  22. at Middleware->think\{closure}() in Pipeline.php line 85
  23. at Pipeline->think\{closure}() in SessionInit.php line 67
  24. at SessionInit->handle()
  25. at call_user_func() in Middleware.php line 142
  26. at Middleware->think\{closure}() in Pipeline.php line 85
  27. at Pipeline->think\{closure}() in Pipeline.php line 66
  28. at Pipeline->then() in Http.php line 207
  29. at Http->runWithRequest() in Http.php line 170
  30. at Http->run() in index.php line 24

Environment Variables

GET Data
aid 22
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_CDN_LOOP google
HTTP_X_FROM_CDN gcc-wdc-4f1f5393ac80acc4
HTTP_CONNECTION Keep-Alive
HTTP_X_FORWARDED_PROTO https
HTTP_X_FORWARDED_FOR 44.204.94.166, 34.36.97.219
HTTP_VIA 1.1 google
HTTP_X_CLOUD_TRACE_CONTEXT 240fc5ecf3e8da8df1e782df3b4456b1/5737561625465776966
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.lumayun.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.lumayun.com
SERVER_PORT 80
SERVER_ADDR 172.17.130.80
REMOTE_PORT 49398
REMOTE_ADDR 34.127.192.112
SERVER_SOFTWARE nginx/1.20.2
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/dev.lumayun.com/public
DOCUMENT_URI /index.php
REQUEST_URI /index/docs/detail?aid=22
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/index/docs/detail&aid=22
SCRIPT_FILENAME /www/wwwroot/dev.lumayun.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711632391.3565
REQUEST_TIME 1711632391