[8] ErrorException in extention.php line 120

未定义数组索引: xicang

  1. }
  2. }
  3. return $val;
  4. }
  5. //通过路由获取chengshi
  6. function get_chengshi(){
  7. $route = request()->route();
  8. if(isset($route['city'])){
  9. $cityarr = config('city');
  10. $chengshi = $cityarr[$route['city']];
  11. }else{
  12. $chengshi = '';
  13. }
  14. return $chengshi;
  15. }
  16. function get_pubdate(){
  17. return format_date(time(),'Y-m-d').'T'.format_date(time(),'H:i:s');
  18. }
  19. function dangqian_url(){

Call Stack

  1. in extention.php line 120
  2. at Error::appError(8, 'Undefined index: xic...', '/www/wwwroot/www.sdz...', 120, ['route' => ['catdir1' => 'yulun', 'city' => 'xicang', 'id' => '438'], 'cityarr' => ['beijing' => '北京', 'shanghai' => '上海', 'tianjin' => '天津', ...]]) in extention.php line 120
  3. at get_chengshi() in Index.php line 48
  4. at Index->show(0, '438')
  5. at ReflectionMethod->invokeArgs(object(Index), [0, '438']) in App.php line 343
  6. at App::invokeMethod([object(Index), 'show'], []) in App.php line 611
  7. at App::module([null, 'index', 'show'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  8. at App::exec(['type' => 'module', 'module' => [null, 'index', 'show'], 'convert' => false], ['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('/www/wwwroot/www.sdz...') in index.php line 22

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/www.sdzhuoshang.com/index.php
QUERY_STRING
s=/yulun/xicang/438.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/yulun/xicang/438.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/www.sdzhuoshang.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.22.1
REMOTE_ADDR
34.228.168.200
REMOTE_PORT
59904
SERVER_ADDR
172.26.134.149
SERVER_PORT
80
SERVER_NAME
www.sdzhuoshang.com
REDIRECT_STATUS
200
PATH_INFO
/yulun/xicang/438.html
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.sdzhuoshang.com
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711673116.4415
REQUEST_TIME
1711673116
ALL_HTTP
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.sdzhuoshang.com/application/
IN_LFCMS
true
THINK_VERSION
5.0.24
THINK_START_TIME
1711673116.442
THINK_START_MEM
260784
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.sdzhuoshang.com/thinkphp/
LIB_PATH
/www/wwwroot/www.sdzhuoshang.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.sdzhuoshang.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.sdzhuoshang.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.sdzhuoshang.com/
EXTEND_PATH
/www/wwwroot/www.sdzhuoshang.com/extend/
VENDOR_PATH
/www/wwwroot/www.sdzhuoshang.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.sdzhuoshang.com/runtime/
LOG_PATH
/www/wwwroot/www.sdzhuoshang.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.sdzhuoshang.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.sdzhuoshang.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.sdzhuoshang.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false