[8] ErrorException in Base.php line 181

未定义数组下标: 0

  1. $this->province = $res[0]['province_name'];
  2. $this->lon = $res[0]['lon'];
  3. $this->lat = $res[0]['lat'];
  4. $this->sitedomain = $res[0]['domain'];
  5. $path = $res[0]['description'];
  6. }
  7. }
  8. }
  9. // 2025-09-30 关停除北京 天津 河北的站点
  10. if (!in_array($query[0]['province'],['hebei','tianjin','beijing'])) {
  11. exit('站点维护中。。。');
  12. }
  13. }
  14. $GLOBALS['path_2'] = $path;
  15. Session::set('areaid',$this->areaid);
  16. // SEO 需要 将不带www的访问跳转到带www的域名
  17. if($_SERVER['HTTP_HOST'] == $this->short_domain){
  18. $url = $this->master_domain.$_SERVER['REQUEST_URI'];
  19. $this->redirect($url,301);

Call Stack

  1. in Base.php line 181
  2. at Error::appError(8, 'Undefined offset: 0', '/www/wwwroot/www.fan...', 181, ['real_ip' => '216.73.216.122', 'area_id' => null, 'http_type' => 'https://', ...]) in Base.php line 181
  3. at Base->_initialize() in Index.php line 23
  4. at Index->_initialize() in Controller.php line 59
  5. at Controller->__construct(object(Request))
  6. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  7. at App::invokeClass('app\index\controller...') in Loader.php line 479
  8. at Loader::controller('index', 'controller', false, 'Error') in App.php line 580
  9. at App::module([null, 'index', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  10. at App::exec(['type' => 'module', 'module' => [null, 'index', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  11. at App::run() in start.php line 19
  12. at require('/www/wwwroot/www.fan...') in index.php line 420

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_CONTENT_TYPE
application/x-www-form-urlencoded
HTTP_CONTENT_LENGTH
0
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT_ENCODING
identity
HTTP_X_FORWARDED_FOR
216.73.216.122
HTTP_ACCEPT
*/*
HTTP_X_FORWARDED_HOST
rt.http3.lol
HTTP_X_FORWARDED_PROTO
https
HTTP_HOST
ai.fanglingdi.com
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
www.fanglingdi.com
SERVER_PORT
443
SERVER_ADDR
172.19.73.175
REMOTE_PORT
57686
REMOTE_ADDR
148.135.83.86
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/www.fanglingdi.com/fld/public
DOCUMENT_URI
/index.php
REQUEST_URI
/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
0
CONTENT_TYPE
application/x-www-form-urlencoded
REQUEST_METHOD
GET
QUERY_STRING
SCRIPT_FILENAME
/www/wwwroot/www.fanglingdi.com/fld/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1759776768.345
REQUEST_TIME
1759776768
ALL_HTTP
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.fanglingdi.com/fld/public/../application/
PC_PATH
/www/wwwroot/www.fanglingdi.com/fld/public/../application/index/view/
_PATH
/www/wwwroot/www.fanglingdi.com/fld/public/..//
A_PATH
/www/wwwroot/www.fanglingdi.com/fld/public/..//a/
THINK_VERSION
5.0.24
THINK_START_TIME
1759776768.3452
THINK_START_MEM
408168
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.fanglingdi.com/fld/thinkphp/
LIB_PATH
/www/wwwroot/www.fanglingdi.com/fld/thinkphp/library/
CORE_PATH
/www/wwwroot/www.fanglingdi.com/fld/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.fanglingdi.com/fld/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.fanglingdi.com/fld/
EXTEND_PATH
/www/wwwroot/www.fanglingdi.com/fld/extend/
VENDOR_PATH
/www/wwwroot/www.fanglingdi.com/fld/vendor/
RUNTIME_PATH
/www/wwwroot/www.fanglingdi.com/fld/runtime/
LOG_PATH
/www/wwwroot/www.fanglingdi.com/fld/runtime/log/
CACHE_PATH
/www/wwwroot/www.fanglingdi.com/fld/runtime/cache/
TEMP_PATH
/www/wwwroot/www.fanglingdi.com/fld/runtime/temp/
CONF_PATH
/www/wwwroot/www.fanglingdi.com/fld/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false