[8] ErrorException in Products.php line 48

未定义数组索引: create_time

  1. {
  2. $id = request()->param('id','');
  3. $qq = Db::name('Type')->where('encoding','=','qq')->find();
  4. $qq['file_path']=Db::name('File')->where(array('id'=>$qq['file_id']))->find();
  5. $this->assign('qq',$qq);
  6. $case = Db::name('SuccessCase')->find($id);
  7. $image = explode(',',$case['image_id']);
  8. $case['file_path'] = Db::name('File')->where('id','in',$image)->select();
  9. // dump($case);
  10. $case['create_time'] = date('Y-m-d H:i:s',$case['create_time']);
  11. $this->assign('case',$case);
  12. return $this->fetch();
  13. }
  14. }

Call Stack

  1. in Products.php line 48
  2. at Error::appError(8, 'Undefined index: cre...', '/www/wwwroot/diyyun....', 48, ['id' => 'favicon', 'qq' => ['id' => 1, 'pid' => 0, 'title' => 'qq', ...], 'case' => ['file_path' => []], ...]) in Products.php line 48
  3. at Products->detail()
  4. at ReflectionMethod->invokeArgs(object(Products), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Products), object(ReflectionMethod), ['id' => 'favicon', 'convert' => false]) in Module.php line 132
  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 137
  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
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_ACCEPT_ENCODING gzip, identity;q=0.9
HTTP_ACCEPT_LANGUAGE zh, en, *
HTTP_ACCEPT text/html,image/png,image/jpeg,image/pjpeg,image/x-xbitmap,image/svg+xml,image/gif;q=0.9,*/*;q=0.1
HTTP_USER_AGENT Mozilla/4.5 (compatible; HTTrack 3.0x; Windows 98)
HTTP_HOST www.skyunseen.com
HTTP_CONNECTION keep-alive
HTTP_REFERER http://www.skyunseen.com/cases/24.html
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME diyyun.com
SERVER_PORT 443
SERVER_ADDR 27.155.105.53
REMOTE_PORT 1408
REMOTE_ADDR 123.161.202.56
SERVER_SOFTWARE nginx/1.15.10
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/diyyun.com/public
DOCUMENT_URI /index.php
REQUEST_URI /cases/favicon.ico
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/cases/favicon.ico
SCRIPT_FILENAME /www/wwwroot/diyyun.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1558936056.1065
REQUEST_TIME 1558936056
Environment Variablesempty
ThinkPHP Constantsempty