40001百老汇(中国)-官方网站- App Store

#0 [8]ErrorException in Index.php line 290

Undefined property: app\index\controller\Index::$user

  1. $str = '';
  2. for ($i = $start; $i < $end; $i++) {
  3. $str.=$array[$i];
  4. }
  5. return count($array) > $len ? ($suffix == 1 ? $str . "…" : $str) : $str;
  6. }
  7. public function blog_details(){
  8. $user = $this->user;
  9. if(!isset($user['name'])) header('Location: /login');
  10. //print_r($user);
  11. //die;
  12. $news = Db::name('data_news_item')
  13. ->where('code','=',$_GET['code'])
  14. ->find();
  15. $up = Db::name('data_news_item')
  16. ->where('id','<',$news['id'])
  17. ->where(['deleted'=>0,'status'=>1,'cate_id'=>$news['cate_id']])

Call Stack

  1. in Index.php line 290
  2. at Error->appError() in Index.php line 290
  3. at Index->blog_details()
  4. at ReflectionMethod->invokeArgs() in Container.php line 343
  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 89
  10. at Dispatch->run() in Route.php line 772
  11. at Route->think\{closure}() in Pipeline.php line 59
  12. at Pipeline->think\{closure}() in Library.php line 111
  13. at Library->think\admin\{closure}()
  14. at call_user_func() in Middleware.php line 142
  15. at Middleware->think\{closure}() in Pipeline.php line 85
  16. at Pipeline->think\{closure}() in Pipeline.php line 66
  17. at Pipeline->then() in Route.php line 773
  18. at Route->dispatch() in Http.php line 216
  19. at Http->dispatchToRoute() in Http.php line 206
  20. at Http->think\{closure}() in Pipeline.php line 59
  21. at Pipeline->think\{closure}() in Multiple.php line 71
  22. at Multiple->think\admin\multiple\{closure}() in Pipeline.php line 59
  23. at Pipeline->think\{closure}() in Pipeline.php line 66
  24. at Pipeline->then() in Multiple.php line 72
  25. at Multiple->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 59
  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 SessionInit.php line 67
  33. at SessionInit->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 SystemService.php line 348
  40. at SystemService->doInit() in index.php line 23

Environment Variables

GET Data
code A7292690870671797597
POST Dataempty
Filesempty
Cookies
PHPSESSID 06f51be1f5d503f68411cf9f0ae6b806
lang zh-cn
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_COOKIE PHPSESSID=06f51be1f5d503f68411cf9f0ae6b806; lang=zh-cn
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.imjiayi.com
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.imjiayi.com
SERVER_PORT 80
SERVER_ADDR 172.18.90.161
REMOTE_PORT 49368
REMOTE_ADDR 107.158.193.210
SERVER_SOFTWARE nginx/1.20.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.imjiayi.com/public
DOCUMENT_URI /index.php
REQUEST_URI /blog_details.html?code=A7292690870671797597
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/blog_details.html&code=A7292690870671797597
SCRIPT_FILENAME /www/wwwroot/www.imjiayi.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1718282716.319
REQUEST_TIME 1718282716