#0 [8]ErrorException in IndexLogic.php line 341

未定义数组索引: enrollment

  1. $info = Db::name('m_school')->where('school_id',$schoolId)->where('zdid',$zdid)->find();
  2. $schoolold_Id = $info['school_ids'];
  3. }
  4. //查询学校简介
  5. $info['detail'] = Db::name('m_school_detail')->where('school_id',$schoolId)->where('zdid',$zdid)->find();
  6. if(empty($info['detail'])){
  7. $info['detail'] = Db::name('m_school_detail')->where('school_id',$info['school_ids'])->where('zdid',$zdid)->find();
  8. }
  9. //查询学校招生简章
  10. if(!$info['enrollment']) {
  11. $info['enrollment'] = Db::name('t_school_enrollment')->where('school_id',$schoolId)->where('zdid',$zdid)->value('des');
  12. }
  13. $info['huapian'] = ['code'=>0,'msg'=>'未登录!'];
  14. if($userId > 0){
  15. //查询划片数据
  16. }
  17. //对口学校
  18. // yjcss修改
  19. if($schoolold_Id == 0){

Call Stack

  1. in IndexLogic.php line 341
  2. at Error->appError(8, 'Undefined index: enr...', '/www/wwwroot/xqfhp.c...', 341, ['schoolId' => '5450', 'zdid' => 3, 'userId' => 0, ...]) in IndexLogic.php line 341
  3. at IndexLogic->showInfo('5450', 3, 0) in Index.php line 74
  4. at Index->show('5450')
  5. at ReflectionMethod->invokeArgs(object(Index), ['5450']) in Container.php line 342
  6. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['id' => '5450']) in Controller.php line 110
  7. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  8. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  9. at Pipeline->then(object(Closure)) in Controller.php line 113
  10. at Controller->exec() in Dispatch.php line 89
  11. at Dispatch->run() in Route.php line 760
  12. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  13. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  14. at Pipeline->then(object(Closure)) in Route.php line 761
  15. at Route->dispatch(object(Request), object(Closure)) in Http.php line 210
  16. at Http->dispatchToRoute(object(Request)) in Http.php line 200
  17. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  18. at Pipeline->think\{closure}(object(Request)) in MultiApp.php line 71
  19. at MultiApp->think\app\{closure}(object(Request)) in Pipeline.php line 59
  20. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  21. at Pipeline->then(object(Closure)) in MultiApp.php line 72
  22. at MultiApp->handle(object(Request), object(Closure))
  23. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  24. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  25. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  26. at SessionInit->handle(object(Request), object(Closure))
  27. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  28. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  29. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  30. at Pipeline->then(object(Closure)) in Http.php line 201
  31. at Http->runWithRequest(object(Request)) in Http.php line 162
  32. at Http->run() in index.php line 30

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_REFERER http://www.xqfhp.com/aid/5450/
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.xqfhp.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME sh.xqfhp.com
SERVER_PORT 443
SERVER_ADDR 45.114.124.120
REMOTE_PORT 51622
REMOTE_ADDR 44.213.75.78
SERVER_SOFTWARE nginx/1.20.2
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/xqfhp.com/public
DOCUMENT_URI /index.php
REQUEST_URI /aid/5450/
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/aid/5450/
SCRIPT_FILENAME /www/wwwroot/xqfhp.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711666012.9217
REQUEST_TIME 1711666012