bet体育在线网址平台-首页

#0 [8]ErrorException in File.php line 49

Trying to get property 'img' of non-object

  1. return $this->fetch();
  2. }
  3. public function download()
  4. {
  5. $id = input('id');
  6. $fileInfo = $this->model->getInfo($id);
  7. $file_arr = explode('storage', $fileInfo->img);
  8. $file = Config::get('filesystem.disks.public.root').$file_arr[1];
  9. return download($file, $fileInfo['title_'.$this->lang].'.'.$fileInfo->img_ext);
  10. }
  11. }

Call Stack

  1. in File.php line 49
  2. at Error->appError() in File.php line 49
  3. at File->download()
  4. at ReflectionMethod->invokeArgs() in Container.php line 344
  5. at Container->invokeReflectMethod() in Controller.php line 110
  6. at Controller->think\route\dispatch\{closure}() in Pipeline.php line 59
  7. at Pipeline->think\{closure}() in Pipeline.php line 66
  8. at Pipeline->then() in Controller.php line 113
  9. at Controller->exec() in Dispatch.php line 90
  10. at Dispatch->run() in Route.php line 785
  11. at Route->think\{closure}() in Pipeline.php line 59
  12. at Pipeline->think\{closure}() in Pipeline.php line 66
  13. at Pipeline->then() in Route.php line 786
  14. at Route->dispatch() in Http.php line 216
  15. at Http->dispatchToRoute() in Http.php line 206
  16. at Http->think\{closure}() in Pipeline.php line 59
  17. at Pipeline->think\{closure}() in MultiApp.php line 71
  18. at MultiApp->think\app\{closure}() in Pipeline.php line 59
  19. at Pipeline->think\{closure}() in Pipeline.php line 66
  20. at Pipeline->then() in MultiApp.php line 72
  21. at MultiApp->handle()
  22. at call_user_func() in Middleware.php line 142
  23. at Middleware->think\{closure}() in Pipeline.php line 85
  24. at Pipeline->think\{closure}() in SessionInit.php line 67
  25. at SessionInit->handle()
  26. at call_user_func() in Middleware.php line 142
  27. at Middleware->think\{closure}() in Pipeline.php line 85
  28. at Pipeline->think\{closure}() in LoadLangPack.php line 57
  29. at LoadLangPack->handle()
  30. at call_user_func() in Middleware.php line 142
  31. at Middleware->think\{closure}() in Pipeline.php line 85
  32. at Pipeline->think\{closure}() in TraceDebug.php line 71
  33. at TraceDebug->handle()
  34. at call_user_func() in Middleware.php line 142
  35. at Middleware->think\{closure}() in Pipeline.php line 85
  36. at Pipeline->think\{closure}() in Pipeline.php line 66
  37. at Pipeline->then() in Http.php line 207
  38. at Http->runWithRequest() in Http.php line 170
  39. at Http->run() in index.php line 60

Environment Variables

GET Data
id 22
POST Dataempty
Filesempty
Cookies
PHPSESSID e4e0009293f1634c892f56db8cecae1f
think_lang zh-cn
Session
kvcode 9310
captcha { "key": "$2y$10$pUKH0YWgdDOIAuPB1c5jau3.lHeBeWiE3g\/ZoV39yHdvzS32m.2.6" }
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=e4e0009293f1634c892f56db8cecae1f; think_lang=zh-cn
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.grepow.cn
HTTP_USER_AGENT Mozilla/5.0 (compatible; SemrushBot/7~bl; +http://www.semrush.com/bot.html)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.grepow.cn
SERVER_PORT 443
SERVER_ADDR 172.18.110.185
REMOTE_PORT 46472
REMOTE_ADDR 170.130.206.146
SERVER_SOFTWARE nginx/1.22.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.grepow.cn/public
DOCUMENT_URI /index.php
REQUEST_URI /download?id=22
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/download&id=22
SCRIPT_FILENAME /www/wwwroot/www.grepow.cn/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1714537511.0864
REQUEST_TIME 1714537511
Baidu
sogou