见好就收才是赢(VIP认证)官网·登录入口

#0 [8]ErrorException in Index.php line 108

未定义数组索引: id

  1. //栏目ID
  2. $cat = $this->request->param('catid/d', 0);
  3. if (empty($cat)) {
  4. $cat = $this->request->param('catdir/s', '');
  5. }
  6. //获取栏目数据
  7. $category = getCategory($cat);
  8. // 栏目ID
  9. $catid = $category['id'];
  10. //模型ID
  11. $modelid = $category['modelid'];
  12. $modelInfo = __getModel($modelid);
  13. if (empty($modelInfo)) {
  14. $this->error('模型不存在'); //模型不存在
  15. }
  16. // 浏览量+1

Call Stack

  1. in Index.php line 108
  2. at Error->appError(8, 'Undefined index: id', '/data/user/htdocs/ap...', 108, ['id' => 25, 'cat' => 'news', 'category' => []]) in Index.php line 108
  3. at Index->shows()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 344
  5. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['catdir' => 'news', 'id' => '25']) in Controller.php line 110
  6. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  7. at Pipeline->think\{closure}(object(Request)) in Throttle.php line 141
  8. at Throttle->handle(object(Request), object(Closure))
  9. at call_user_func([object(Throttle), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  10. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  11. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  12. at Pipeline->then(object(Closure)) in Controller.php line 113
  13. at Controller->exec() in Dispatch.php line 90
  14. at Dispatch->run() in Route.php line 772
  15. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  16. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  17. at Pipeline->then(object(Closure)) in Route.php line 773
  18. at Route->dispatch(object(Request), object(Closure)) in Http.php line 216
  19. at Http->dispatchToRoute(object(Request)) in Http.php line 206
  20. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  21. at Pipeline->think\{closure}(object(Request)) in MultiApp.php line 71
  22. at MultiApp->think\app\{closure}(object(Request)) in Pipeline.php line 59
  23. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  24. at Pipeline->then(object(Closure)) in MultiApp.php line 72
  25. at MultiApp->handle(object(Request), object(Closure))
  26. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  27. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  28. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  29. at SessionInit->handle(object(Request), object(Closure))
  30. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  31. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  32. at Pipeline->think\{closure}(object(Request)) in LoadLangPack.php line 57
  33. at LoadLangPack->handle(object(Request), object(Closure))
  34. at call_user_func([object(LoadLangPack), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  35. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  36. at Pipeline->think\{closure}(object(Request)) in TraceDebug.php line 71
  37. at TraceDebug->handle(object(Request), object(Closure))
  38. at call_user_func([object(TraceDebug), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  39. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  40. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  41. at Pipeline->then(object(Closure)) in Http.php line 207
  42. at Http->runWithRequest(object(Request)) in Http.php line 170
  43. at Http->run() in index.php line 41

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID 6010e41a4293659adfee3389da5ee489
think_lang zh-cn
Sessionempty
Server/Request Data
USER nobody
HOME /
HTTP_COOKIE PHPSESSID=6010e41a4293659adfee3389da5ee489; think_lang=zh-cn
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.81lcd.com
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
REDIRECT_STATUS 200
SERVER_NAME wh-nbd277u84j5grcjxzyj.my3w.com
SERVER_PORT 80
SERVER_ADDR 10.21.211.213
REMOTE_PORT 55784
REMOTE_ADDR 107.158.144.110
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /data/user/htdocs
DOCUMENT_URI /index.php
REQUEST_URI /news/25.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/news/25.html
PATH_INFO
SCRIPT_FILENAME /data/user/htdocs/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1728891502.3095
REQUEST_TIME 1728891502
0.072695s
XML 地图