[8] ErrorException in Recruits.php line 138

未定义数组下标: 0

  1. //判断校园还是社会
  2. if($type == 1){
  3. $types =52;
  4. }else{
  5. $types = 51;
  6. }
  7. $this->assign('types',$types);
  8. //读取校园招聘下级信息
  9. $erji_data = Db::name("sortclass")->where(['parentid'=>$sort_arr[$type]])->order('orders desc')->field('id,sortname')->select();
  10. $this->assign('erji_data',$erji_data);
  11. //搜索职位
  12. $names = input('get.title');
  13. $sort = "";
  14. $sort = input('get.sort');
  15. $q = $sort_arr[$type];
  16. $query = [];
  17. $arr1 = [];

Call Stack

  1. in Recruits.php line 138
  2. at Error::appError(8, 'Undefined offset: 0', '/home/wwwroot/zbjt/a...', 138, ['type' => 0, 'banner_data' => ['id' => 358, 'title' => '校园招聘banner', 'remark' => null, ...], 'sort_arr' => [52, 51, 51, ...], ...]) in Recruits.php line 138
  3. at Recruits->station('index')
  4. at ReflectionMethod->invokeArgs(object(Recruits), ['index']) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Recruits), object(ReflectionMethod), ['index']) in Module.php line 132
  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 137
  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 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_STATUS
200
proxy-nokeepalive
1
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.zhengbang.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
LD_LIBRARY_PATH
/www/server/apache/lib
SERVER_SIGNATURE
<address>Apache Server at www.zhengbang.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
www.zhengbang.com
SERVER_ADDR
211.149.224.47
SERVER_PORT
80
REMOTE_ADDR
154.212.223.105
DOCUMENT_ROOT
/www/wwwroot/zbjt/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/zbjt/public
SERVER_ADMIN
webmaster@example.com
SCRIPT_FILENAME
/www/wwwroot/zbjt/public/index.php
REMOTE_PORT
20002
REDIRECT_URL
/recruits/station/index.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/recruits/station/index.html
SCRIPT_NAME
/index.php
PATH_INFO
/recruits/station/index.html
PATH_TRANSLATED
redirect:/index.php/recruits/station/index.html/station/index.html
PHP_SELF
/index.php/recruits/station/index.html
REQUEST_TIME_FLOAT
1604105098.809
REQUEST_TIME
1604105098
Environment Variablesempty
ThinkPHP Constantsempty