[8] ErrorException in Sck.php line 741

未定义数组索引: cateid

  1. $style_ids = array_merge($style_ids, $model->where('cateid', '=', $style['cateid'])->order('id desc')->limit(10)->column('id'));
  2. $style_ids = array_merge($style_ids, $model->order('id desc')->limit(20)->column('id'));
  3. }
  4. foreach ($style_ids as $sid) {
  5. $lists[] = $redisData->getHashInfo('style:info:' . $sid);
  6. }
  7. } else if ($module == 'Template') {
  8. $model = Template::getInstance();
  9. $style_ids = [];
  10. $style_ids = array_merge($style_ids, $model->where('cateid', '=', $style['cateid'])->order('favorite desc')->limit(10)->column('id'));
  11. $style_ids = array_merge($style_ids, $model->where('cateid', '=', $style['cateid'])->order('id desc')->limit(10)->column('id'));
  12. $style_ids = array_merge($style_ids, $model->order('id desc')->limit(20)->column('id'));
  13. foreach ($style_ids as $sid) {
  14. $lists[] = $redisData->getHashInfo('template:info:' . $sid);
  15. }
  16. } else if ($module == 'Picture') {
  17. $model = Picture::getInstance();
  18. $lists = array_merge($lists, $model->where('cateid', '=', $style['cateid'])->order('favorite desc')->limit(10)->select()->toArray());
  19. $lists = array_merge($lists, $model->where('cateid', '=', $style['cateid'])->order('id desc')->limit(10)->select()->toArray());

Call Stack

  1. in Sck.php line 741
  2. at Error::appError() in Sck.php line 741
  3. at Sck->getRecommend() in Sck.php line 493
  4. at Sck->tplDetail()
  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/home/sck/tpldetail/id/9690
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.xmyeditor.com
PATH_INFO /home/sck/tpldetail/id/9690
REDIRECT_STATUS 200
SERVER_NAME www.xmyeditor.com
SERVER_PORT 443
SERVER_ADDR 172.17.16.15
REMOTE_PORT 34774
REMOTE_ADDR 52.91.67.23
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/home/sck/tpldetail/id/9690
REQUEST_URI /home/sck/tpldetail/id/9690
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/home/sck/tpldetail/id/9690
REQUEST_TIME_FLOAT 1711619884.413
REQUEST_TIME 1711619884
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