[8] ErrorException in Interview.php line 71

未定义数组索引: orderid

  1. ->where(['id'=>$id])
  2. ->find();
  3. $show['classname'] = Db::name('interview_class')
  4. ->where(['id'=>$show['classid']])
  5. ->value('title');
  6. //上一篇
  7. $lastarr = Db::name('interview_list')
  8. ->field('id,title')
  9. ->where('orderid','<',$show['orderid'])
  10. ->order('orderid desc')
  11. ->find();
  12. //下一篇
  13. $nextarr = Db::name('interview_list')
  14. ->field('id,title')
  15. ->where('orderid','>',$show['orderid'])
  16. ->order('orderid')
  17. ->find();
  18. return $this->fetch('show_view',[

Call Stack

  1. in Interview.php line 71
  2. at Error::appError(8, 'Undefined index: ord...', '/www/wwwroot/hljssgl...', 71, ['id' => '145', 'show' => ['classname' => null]]) in Interview.php line 71
  3. at Interview->show_view()
  4. at ReflectionMethod->invokeArgs(object(Interview), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Interview), object(ReflectionMethod), ['id' => '145']) in Module.php line 131
  6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 435
  18. at App->run() in index.php line 24

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST hljssgl.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME hljssgl.com
SERVER_PORT 80
SERVER_ADDR 172.17.112.31
REMOTE_PORT 36320
REMOTE_ADDR 3.239.57.87
SERVER_SOFTWARE nginx/1.20.2
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/hljssgl.com/public
DOCUMENT_URI /index.php
REQUEST_URI /home/interview/show_view/id/145.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/home/interview/show_view/id/145.html
SCRIPT_FILENAME /www/wwwroot/hljssgl.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711642988.6027
REQUEST_TIME 1711642988
Environment Variablesempty
ThinkPHP Constants
FILTER_VALIDATE_BOOL 258