[8] ErrorException in Sck.php line 720

未定义数组索引: cateid

  1. $style = $redisData->getHashInfo('style:info:' . $id);
  2. } else if ($module == 'Picture') {
  3. $style = Picture::getInstance()->getOne($id);
  4. } else {
  5. $style = $redisData->getHashInfo('template:info:' . $id);
  6. }
  7. $lists = $styles_list = [];
  8. if ($module == 'Sck') {
  9. $category_list = RedisData::getInstance()->getList('category');
  10. $cateinfo = isset($category_list[$style['cateid']]) ? $category_list[$style['cateid']] : [];
  11. $type = $cateinfo['module'];
  12. $parentid = $cateinfo['parentid'];
  13. $model = Style::getInstance();
  14. $style_ids = [];
  15. if ($type == 'style') {
  16. $style_ids = array_merge($style_ids, $model->where('cateid', '=', $style['cateid'])->order('favorite desc')->limit(10)->column('id'));
  17. $style_ids = array_merge($style_ids, $model->where('cateid', '=', $style['cateid'])->order('id desc')->limit(10)->column('id'));
  18. $style_ids = array_merge($style_ids, $model->where('cateid', '=', $parentid)->order('id desc')->limit(10)->column('id'));
  19. $style_ids = array_merge($style_ids, $model->order('id desc')->limit(10)->column('id'));

Call Stack

  1. in Sck.php line 720
  2. at Error::appError() in Sck.php line 720
  3. at Sck->getRecommend() in Sck.php line 449
  4. at Sck->styleDetail()
  5. at ReflectionMethod->invokeArgs() in Container.php line 395
  6. at Container->invokeReflectMethod() in Module.php line 131
  7. at Module->think\route\dispatch\{closure}()
  8. at call_user_func_array() in Middleware.php line 185
  9. at Middleware->think\{closure}()
  10. at call_user_func() in Middleware.php line 130
  11. at Middleware->dispatch() in Module.php line 136
  12. at Module->exec() in Dispatch.php line 168
  13. at Dispatch->run() in App.php line 432
  14. at App->think\{closure}()
  15. at call_user_func_array() in Middleware.php line 185
  16. at Middleware->think\{closure}()
  17. at call_user_func() in Middleware.php line 130
  18. at Middleware->dispatch() in App.php line 435
  19. at App->run() in index.php line 16

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_REFERER http://www.xmyeditor.com/sck/3538.html
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.xmyeditor.com
PATH_INFO /sck/3538.html
REDIRECT_STATUS 200
SERVER_NAME www.xmyeditor.com
SERVER_PORT 443
SERVER_ADDR 172.17.16.15
REMOTE_PORT 59482
REMOTE_ADDR 3.231.146.172
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /data/editor.com/public
DOCUMENT_URI /index.php/sck/3538.html
REQUEST_URI /sck/3538.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /data/editor.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php/sck/3538.html
REQUEST_TIME_FLOAT 1711626881.8206
REQUEST_TIME 1711626881
Environment Variablesempty
ThinkPHP Constants
SITE_PATH /data/editor.com/public/
SITE_URL https://www.xmyeditor.com
APP_NAMESPACE zzcms
SEO_TIT 速排小蚂蚁
FILTER_VALIDATE_BOOL 258
QINIU_FUNCTIONS_VERSION 7.9.0