威尼斯(金沙)欢乐娱人城|精品官网-Green App Store

[8] ErrorException in Agent.php line 74

未定义数组索引: HTTP_USER_AGENT

  1. /**
  2. * 获取客户端操作系统信息包括win10
  3. * @param null
  4. * @author Jea杨
  5. * @return string
  6. */
  7. public static function getOs()
  8. {
  9. $agent = $_SERVER['HTTP_USER_AGENT'];
  10. if (preg_match('/win/i', $agent) && strpos($agent, '95')) {
  11. $os = 'Windows 95';
  12. } else if (preg_match('/win 9x/i', $agent) && strpos($agent, '4.90')) {
  13. $os = 'Windows ME';
  14. } else if (preg_match('/win/i', $agent) && preg_match('/98/i', $agent)) {
  15. $os = 'Windows 98';
  16. } else if (preg_match('/win/i', $agent) && preg_match('/nt 6.0/i', $agent)) {
  17. $os = 'Windows Vista';

Call Stack

  1. in Agent.php line 74
  2. at Error::appError(8, 'Undefined index: HTT...', '/www/wwwroot/www.hrj...', 74, []) in Agent.php line 74
  3. at Agent::getOs() in WebLog.php line 236
  4. at WebLog->init() in WebLog.php line 110
  5. at WebLog->moduleInit(object(Request), null) in Hook.php line 127
  6. at Hook::exec('\app\common\behavior...', 'module_init', object(Request), null) in Hook.php line 88
  7. at Hook::listen('module_init', object(Request)) in App.php line 388
  8. at App::module(['', null, null], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 295
  9. at App::exec(['type' => 'module', 'module' => ['', null, null]], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 123
  10. at App::run() in start.php line 17
  11. at require('/www/wwwroot/www.hrj...') in index.php line 16

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
5fncfeio837c1nmas5b58scnmo
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
PHPSESSID=5fncfeio837c1nmas5b58scnmo
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.hrjsjt.com
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
www.hrjsjt.com
SERVER_PORT
80
SERVER_ADDR
172.22.86.135
REMOTE_PORT
43398
REMOTE_ADDR
104.206.1.166
SERVER_SOFTWARE
nginx/1.20.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.hrjsjt.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/www.hrjsjt.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1701118617.1593
REQUEST_TIME
1701118617
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.hrjsjt.com/public/../apps/
THINK_VERSION
5.0.7
THINK_START_TIME
1701118617.1597
THINK_START_MEM
367344
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.hrjsjt.com/thinkphp/
LIB_PATH
/www/wwwroot/www.hrjsjt.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.hrjsjt.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.hrjsjt.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.hrjsjt.com/
EXTEND_PATH
/www/wwwroot/www.hrjsjt.com/extend/
VENDOR_PATH
/www/wwwroot/www.hrjsjt.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.hrjsjt.com/runtime/
LOG_PATH
/www/wwwroot/www.hrjsjt.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.hrjsjt.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.hrjsjt.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.hrjsjt.com/public/../apps/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
QINIU_FUNCTIONS_VERSION
7.1.3