#0 [8]ErrorException in Product.php line 30

未定义数组索引: sid

  1. $cate_list = $cate_m->get_id($id);
  2. # 根绝sid 判断不是父级
  3. if (!empty($cate_list) && $cate_list['sid'] == 0) {
  4. # sid=0 是父级
  5. $fid = $id;
  6. $zid = 0;
  7. } else {
  8. # sid!=0 是子级
  9. $fid = $cate_list['sid'];
  10. $zid = $id;
  11. }
  12. $where = [$id];
  13. $cate_arr = $cate_m->get_sid_cate($id);
  14. if (!empty($cate_arr)) {
  15. foreach ($cate_arr as $k => $v) {
  16. array_push($where, $v['id']);
  17. }

Call Stack

  1. in Product.php line 30
  2. at Error->appError() in Product.php line 30
  3. at Product->index()
  4. at ReflectionMethod->invokeArgs() in Container.php line 344
  5. at Container->invokeReflectMethod() in Controller.php line 110
  6. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  7. at Pipeline->think\{closure}() in Pipeline.php line 66
  8. at Pipeline->then() in Controller.php line 113
  9. at Controller->exec() in Dispatch.php line 80
  10. at Dispatch->run() in Route.php line 793
  11. at Route->think\{closure}() in Pipeline.php line 59
  12. at Pipeline->think\{closure}() in RbacAccess.php line 71
  13. at RbacAccess->handle()
  14. at call_user_func() in Middleware.php line 142
  15. at Middleware->think\{closure}() in Pipeline.php line 85
  16. at Pipeline->think\{closure}() in Pipeline.php line 66
  17. at Pipeline->then() in Route.php line 794
  18. at Route->dispatch() in Http.php line 216
  19. at Http->dispatchToRoute() in Http.php line 206
  20. at Http->think\{closure}() in Pipeline.php line 59
  21. at Pipeline->think\{closure}() in MultAccess.php line 75
  22. at MultAccess->think\admin\support\middleware\{closure}() in Pipeline.php line 59
  23. at Pipeline->think\{closure}() in Pipeline.php line 66
  24. at Pipeline->then() in MultAccess.php line 76
  25. at MultAccess->handle()
  26. at call_user_func() in Middleware.php line 142
  27. at Middleware->think\{closure}() in Pipeline.php line 85
  28. at Pipeline->think\{closure}() in LoadLangPack.php line 57
  29. at LoadLangPack->handle()
  30. at call_user_func() in Middleware.php line 142
  31. at Middleware->think\{closure}() in Pipeline.php line 85
  32. at Pipeline->think\{closure}() in JwtSession.php line 113
  33. at JwtSession->handle()
  34. at call_user_func() in Middleware.php line 142
  35. at Middleware->think\{closure}() in Pipeline.php line 85
  36. at Pipeline->think\{closure}() in Library.php line 140
  37. at Library->think\admin\{closure}()
  38. at call_user_func() in Middleware.php line 142
  39. at Middleware->think\{closure}() in Pipeline.php line 85
  40. at Pipeline->think\{closure}() in Pipeline.php line 66
  41. at Pipeline->then() in Http.php line 207
  42. at Http->runWithRequest() in Http.php line 170
  43. at Http->run() in RuntimeService.php line 234
  44. at RuntimeService::doWebsiteInit() in index.php line 23

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
PATH_TRANSLATED redirect:/index.php/product/116.html/116.html
PATH_INFO /product/116.html
SCRIPT_NAME /index.php
REQUEST_URI //product/116.html
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /product/116.html
REMOTE_PORT 16752
SCRIPT_FILENAME /www/wwwroot/zsdzs.com/public/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/zsdzs.com/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot/zsdzs.com/public
REMOTE_ADDR 172.16.1.72
SERVER_PORT 80
SERVER_ADDR 172.16.1.71
SERVER_NAME www.zsdzs.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE <address>Apache Server at www.zsdzs.com Port 80</address>
LD_LIBRARY_PATH /www/server/apache/lib
PATH /www/server/panel/pyenv/bin:/www/server/panel/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
HTTP_X_MICROSOFTAJAX Delta=true
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2)
CONTENT_TYPE application/x-www-form-urlencoded; charset=utf-8
HTTP_CACHE_CONTROL no-cache
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_X_APPLE_STORE_FRONT 143444,12
HTTP_X_APPLE_TZ 0
HTTP_REFERER https://www.baidu.com/search/spider.htm
HTTP_X_FORWARDED_FOR 156.254.184.162, 172.16.1.96
HTTP_HOST www.zsdzs.com
proxy-nokeepalive 1
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php/product/116.html
REQUEST_TIME_FLOAT 1778780243.3054
REQUEST_TIME 1778780243
站点地图