[8] ErrorException in common.php line 412

未定义数组索引: mobile

  1. $mobile = array();
  2. static $mobilebrowser_list ='Mobile|iPhone|Android|WAP|NetFront|JAVA|OperasMini|UCWEB|WindowssCE|Symbian|Series|webOS|SonyEricsson|Sony|BlackBerry|Cellphone|dopod|Nokia|samsung|PalmSource|Xphone|Xda|Smartphone|PIEPlus|MEIZU|MIDP|CLDC';
  3. //note 获取手机浏览器
  4. if(preg_match("/$mobilebrowser_list/i", $_SERVER['HTTP_USER_AGENT'], $mobile)) {
  5. return true;
  6. }else{
  7. if(preg_match('/(mozilla|chrome|safari|opera|m3gate|winwap|openwave)/i', $_SERVER['HTTP_USER_AGENT'])) {
  8. return false;
  9. }else{
  10. if($_GET['mobile'] === 'yes') {
  11. return true;
  12. }else{
  13. return false;
  14. }
  15. }
  16. }
  17. }
  18. function isiPhone()

Call Stack

  1. in common.php line 412
  2. at Error::appError(8, 'Undefined index: mob...', '/home/wwwroot/stock/...', 412, ['mobile' => [], 'mobilebrowser_list' => 'Mobile|iPhone|Androi...']) in common.php line 412
  3. at isMobile() in Index.php line 85
  4. at Index->rankingList()
  5. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  6. at App::invokeMethod([object(Index), 'rankinglist'], []) in App.php line 611
  7. at App::module(['index', 'index', 'rankinglist'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  8. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'rankinglist']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/home/wwwroot/stock/...') in index.php line 18

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
moni.sjqcj.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
REDIRECT_STATUS
200
SERVER_NAME
moni.sjqcj.com
SERVER_PORT
443
SERVER_ADDR
172.16.119.1
REMOTE_PORT
54614
REMOTE_ADDR
54.224.52.210
SERVER_SOFTWARE
nginx/1.20.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/home/wwwroot/stock/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/index/rankinglist.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=//index/index/rankinglist.html
SCRIPT_FILENAME
/home/wwwroot/stock/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710835871.3286
REQUEST_TIME
1710835871
PATH_INFO
//index/index/rankinglist.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/wwwroot/stock/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1710835871.3289
THINK_START_MEM
408888
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/stock/thinkphp/
LIB_PATH
/home/wwwroot/stock/thinkphp/library/
CORE_PATH
/home/wwwroot/stock/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/stock/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/stock/
EXTEND_PATH
/home/wwwroot/stock/extend/
VENDOR_PATH
/home/wwwroot/stock/vendor/
RUNTIME_PATH
/home/wwwroot/stock/runtime/
LOG_PATH
/home/wwwroot/stock/runtime/log/
CACHE_PATH
/home/wwwroot/stock/runtime/cache/
TEMP_PATH
/home/wwwroot/stock/runtime/temp/
CONF_PATH
/home/wwwroot/stock/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false