[8] ErrorException in Tree.php line 163

未定义变量: trees

  1. {
  2. foreach ($lists as $value) {
  3. if ($value[self::$config['id']] == $id) {
  4. $trees = $value;
  5. if($trees['pid'] > 0){
  6. $trees = $lists[$trees['pid']];
  7. }
  8. }
  9. }
  10. return $trees;
  11. }
  12. /**
  13. * 根据节点返回所有同级节点
  14. * @param array $lists 数据集
  15. * @param string $pid 父节点pid
  16. * @return array
  17. */
  18. public static function getBrother($lists = [], $pid = '')

Call Stack

  1. in Tree.php line 163
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/xcfskj....', 163, ['lists' => [['id' => 117, 'pid' => 79, 'name' => '防水案例', ...], ['id' => 118, 'pid' => 79, 'name' => '其他工程', ...], ['id' => 73, 'pid' => 0, 'name' => '产品中心', ...], ...], 'id' => 130, 'value' => ['id' => 217, 'pid' => 126, 'name' => 'Honor showcase', ...]]) in Tree.php line 163
  3. at Tree::getParent([['id' => 117, 'pid' => 79, 'name' => '防水案例', ...], ['id' => 118, 'pid' => 79, 'name' => '其他工程', ...], ['id' => 73, 'pid' => 0, 'name' => '产品中心', ...], ...], 130) in Common.php line 132
  4. at Common->getLeftColumn(130) in Document.php line 86
  5. at Document->detail('543', '')
  6. at ReflectionMethod->invokeArgs(object(Document), ['543', '']) in Container.php line 395
  7. at Container->invokeReflectMethod(object(Document), object(ReflectionMethod), ['id' => '543']) in Module.php line 131
  8. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  9. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  10. at Middleware->think\{closure}(object(Request))
  11. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  12. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  13. at Module->exec() in Dispatch.php line 168
  14. at Dispatch->run() in App.php line 432
  15. at App->think\{closure}(object(Request), object(Closure), null)
  16. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  17. at Middleware->think\{closure}(object(Request))
  18. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  19. at Middleware->dispatch(object(Request)) in App.php line 435
  20. at App->run() in index.php line 34

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
jiu97_home___jump_url__ /cms/document/detail/id/543.html
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.xcfskj.com
HTTP_REFERER http://xcfskj.com/cms/document/detail/id/543.html
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.xcfskj.com
SERVER_PORT 80
SERVER_ADDR 172.20.28.181
REMOTE_PORT 39000
REMOTE_ADDR 44.197.114.92
SERVER_SOFTWARE nginx/1.20.2
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/xcfskj.com/public
DOCUMENT_URI /index.php
REQUEST_URI /cms/document/detail/id/543.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/cms/document/detail/id/543.html
SCRIPT_FILENAME /www/wwwroot/xcfskj.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711620275.7744
REQUEST_TIME 1711620275
Environment Variablesempty
ThinkPHP Constants
ADMIN_FILE admin.php
FILTER_VALIDATE_BOOL 258
HTMLPURIFIER_PREFIX /www/wwwroot/xcfskj.com/vendor/ezyang/htmlpurifier/library
QINIU_FUNCTIONS_VERSION 7.4.1
PUBLIC_PATH /