金太阳(m95536cn·China认证)官网下载-Venice Dream City

#0 [2]ErrorException in Base.php line 74

Undefined array key "HTTP_USER_AGENT"

  1. // 初始化
  2. public function initialize()
  3. {
  4. if (request()->isMobile()) {
  5. // View::config(['view_dir_name' => 'view/mobile']);
  6. $this->is_mobile = 1; // 手机端
  7. // 判断是否是微信浏览器
  8. }
  9. if (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false) {
  10. $this->is_mobile = 2;
  11. }
  12. View::assign('is_mobile', $this->is_mobile);
  13. View::assign('kwd', '');
  14. //左侧菜单
  15. $allcategory = cache('allCategory');
  16. $tree = new TreeService($allcategory);

Call Stack

  1. in Base.php line 74
  2. at Error->appError() in Base.php line 74
  3. at Base->initialize() in Base.php line 63
  4. at Base->__construct()
  5. at ReflectionClass->newInstanceArgs() in Container.php line 395
  6. at Container->invokeClass() in Container.php line 252
  7. at Container->make() in Controller.php line 187
  8. at Controller->controller() in Controller.php line 74
  9. at Controller->exec() in Dispatch.php line 90
  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 Pipeline.php line 66
  13. at Pipeline->then() in Route.php line 773
  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 TraceDebug.php line 71
  29. at TraceDebug->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 Pipeline.php line 66
  33. at Pipeline->then() in Http.php line 207
  34. at Http->runWithRequest() in Http.php line 170
  35. at Http->run() in index.php line 20

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID de08770fafdefe287791a9970c677861
Session
__token__ d093f4c9a58050344e5922f280937621
Server/Request Data
USER www
HOME /home/www
SCRIPT_NAME /index.php
REQUEST_URI /
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REMOTE_PORT 42414
SCRIPT_FILENAME /www/wwwroot/rainfe.chichenit.cn/public/index.php
SERVER_ADMIN webmaster@example.com
CONTEXT_DOCUMENT_ROOT /www/wwwroot/rainfe.chichenit.cn/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /www/wwwroot/rainfe.chichenit.cn/public
REMOTE_ADDR 104.140.201.70
SERVER_PORT 80
SERVER_ADDR 172.17.214.243
SERVER_NAME www.rainfe.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
Apache Server at www.rainfe.com Port 80
LD_LIBRARY_PATH /www/server/apache/lib
PATH /www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
HTTP_COOKIE PHPSESSID=de08770fafdefe287791a9970c677861
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_HOST www.rainfe.com
proxy-nokeepalive 1
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1732113667.6246
REQUEST_TIME 1732113667