hjc黄金城集团 - 黄金城xhjc官方网站(中国)有限公司

[8] ErrorException in Cases.php line 96

未定义数组索引: cases_type_id

  1. $next = $next ? $next : array('cases_title' => '没有了,这是最后一条', 'id' => $id);
  2. $products['prev'] = $prev;
  3. $products['next'] = $next;
  4. $casesTypeRes = Db::name('cases_type')->where('pid', 0)->select();
  5. foreach ($casesTypeRes as $key => $value) {
  6. $casesTypeRes[$key]['childs'] = $this->casesType($value['id']);
  7. }
  8. $pid = Db::name('cases_type')->field('pid,cases_type_name')->where('id', $products['cases_type_id'])->find();
  9. $randomProduct = $this->randomProduct($products['cases_type_id']);
  10. $askRes = $this->ask();
  11. $goodServices = $this->goodService();
  12. $this->assign(array(
  13. 'products' => $products,
  14. 'casesTypeRes' => $casesTypeRes,

Call Stack

  1. in Cases.php line 96
  2. at Error::appError(8, 'Undefined index: cas...', '/www/wwwroot/www.sy0...', 96, ['id' => 'index', 'products' => ['prev' => ['cases_title' => '...', 'id' => 'index'], 'next' => ['id' => 4, 'cases_title' => '老年椅 ', 'cases_keywords' => '...', ...]], 'prev' => ['cases_title' => '...', 'id' => 'index'], ...]) in Cases.php line 96
  3. at Cases->casesShow()
  4. at ReflectionMethod->invokeArgs(object(Cases), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Cases), object(ReflectionMethod), ['id' => 'index', 'convert' => false]) in Module.php line 131
  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 136
  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
Cookies
PHPSESSID dl2uo2pfm78dn72hsg2223ndtm
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=dl2uo2pfm78dn72hsg2223ndtm
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.sy021.com
HTTP_USER_AGENT Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.6613.137 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.sy021.com
SERVER_PORT 443
SERVER_ADDR 172.19.71.10
REMOTE_PORT 59272
REMOTE_ADDR 104.206.148.142
SERVER_SOFTWARE nginx/1.17.10
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.sy021.com/public
DOCUMENT_URI /index.php
REQUEST_URI /products_show/id/index.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/products_show/id/index.html
SCRIPT_FILENAME /www/wwwroot/www.sy021.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1726263493.3445
REQUEST_TIME 1726263493
Environment Variablesempty
ThinkPHP Constantsempty
Baidu
sogou