大阳城集团所有网站|2023最新版

[8] ErrorException in NewsController.php line 163

未定义变量: banner

  1. if($type['pid'] == 3){ //学科综合营
  2. $banner = Image::get(8);
  3. }
  4. if($type['pid'] == 4){ //大赛专区
  5. $banner = Image::get(9);
  6. }
  7. if($type['pid'] == 21){ //开启护航
  8. $banner = Image::get(20);
  9. }
  10. return $banner;
  11. }
  12. public function getSel($type)
  13. {
  14. if($type['pid'] == 1){ //资讯中心
  15. $sel = 2;
  16. }
  17. if($type['pid'] == 2){ //升学规划
  18. $sel = 3;
  19. }

Call Stack

  1. in NewsController.php line 163
  2. at Error::appError(8, 'Undefined variable: ...', '/data/www/xhxcedu.co...', 163, ['type' => null]) in NewsController.php line 163
  3. at NewsController->getBanner(null) in NewsController.php line 117
  4. at NewsController->detail('m')
  5. at ReflectionMethod->invokeArgs(object(NewsController), ['m']) in App.php line 343
  6. at App::invokeMethod([object(NewsController), 'detail'], []) in App.php line 611
  7. at App::module([null, 'News', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  8. at App::exec(['type' => 'module', 'module' => [null, 'News', 'detail'], '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('/data/www/xhxcedu.co...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
f65hn9dqsuvc7j3r1cvf82hmq1
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/data/www/wthkm.com/index.php
QUERY_STRING
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/detail/id/m
DOCUMENT_URI
/index.php/detail/id/m
DOCUMENT_ROOT
/data/www/wthkm.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.18.0
REMOTE_ADDR
69.46.73.42
REMOTE_PORT
59016
SERVER_ADDR
172.20.194.11
SERVER_PORT
80
SERVER_NAME
wthkm.com
REDIRECT_STATUS
200
PATH_INFO
/detail/id/m
HTTP_USER_AGENT
Mozilla/5.0 (compatible; BLEXBot/1.0; +http://webmeup-crawler.com/)
HTTP_HOST
www.wthkm.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
HTTP_COOKIE
PHPSESSID=f65hn9dqsuvc7j3r1cvf82hmq1
PHP_SELF
/index.php/detail/id/m
REQUEST_TIME_FLOAT
1732909895.9542
REQUEST_TIME
1732909895
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/www/wthkm.com/application/
THINK_VERSION
5.0.16
THINK_START_TIME
1732909895.9547
THINK_START_MEM
260184
EXT
.php
DS
/
THINK_PATH
/data/www/wthkm.com/thinkphp/
LIB_PATH
/data/www/wthkm.com/thinkphp/library/
CORE_PATH
/data/www/wthkm.com/thinkphp/library/think/
TRAIT_PATH
/data/www/wthkm.com/thinkphp/library/traits/
ROOT_PATH
/data/www/wthkm.com/
EXTEND_PATH
/data/www/wthkm.com/extend/
VENDOR_PATH
/data/www/wthkm.com/vendor/
RUNTIME_PATH
/data/www/wthkm.com/runtime/
LOG_PATH
/data/www/wthkm.com/runtime/log/
CACHE_PATH
/data/www/wthkm.com/runtime/cache/
TEMP_PATH
/data/www/wthkm.com/runtime/temp/
CONF_PATH
/data/www/wthkm.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
Baidu
sogou