[8] ErrorException in GalleryList.php line 108

未定义数组下标: 2

  1. $where['region'] = $class[0];
  2. $where['country'] = $class[1];
  3. }
  4. }else{
  5. if (!empty($class[1])) {
  6. $where['region'] = $class[0];
  7. $where['country'] = $class[1];
  8. }
  9. }
  10. $list = Db::name('Zhexhibition')->where('type', $class[2])->where($where)->order('add_time desc')->paginate(10, null, ['page' => $page])->each(function ($item, $key) {
  11. $city = Db::name('Zhcountry_category')->where('id',$item['country'])->find();//地区城市
  12. $country = Db::name('Zhcountry_category')->where('id',$city['pid'])->find();
  13. $item['country'] = $country['cate_name'].'-'.$city['cate_name'];
  14. return $item;
  15. });
  16. } else {
  17. $where = [];
  18. $where['is_show'] = 1;

Call Stack

  1. in GalleryList.php line 108
  2. at Error::appError(8, 'Undefined offset: 2', '/www/wwwroot/www.shi...', 108, ['map' => ['audit' => 1, 'is_show' => 1, 'start_time' => ['<=', 1711706319], ...], 'scroll' => [], 'floor' => [], ...]) in GalleryList.php line 108
  3. at GalleryList->index()
  4. at ReflectionMethod->invokeArgs(object(GalleryList), []) in App.php line 343
  5. at App::invokeMethod([object(GalleryList), 'index'], []) in App.php line 611
  6. at App::module(['index', 'gallery.gallery_list', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'gallery.gallery_list', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/www.shi...') in index.php line 31

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.shifair.com
PATH_INFO
/gallery/details/209
REDIRECT_STATUS
200
SERVER_NAME
shifair.com
SERVER_PORT
443
SERVER_ADDR
172.25.45.94
REMOTE_PORT
43676
REMOTE_ADDR
23.22.236.90
SERVER_SOFTWARE
nginx/1.22.0
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/www.shifair.com
DOCUMENT_URI
/index.php
REQUEST_URI
/gallery/details/209
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/gallery/details/209
SCRIPT_FILENAME
/www/wwwroot/www.shifair.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711706319.142
REQUEST_TIME
1711706319
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.shifair.com/application/
PUBILC_PATH
/public/
UPLOAD_PATH
public/uploads
THINK_VERSION
5.0.24
THINK_START_TIME
1711706319.1426
THINK_START_MEM
417216
EXT
.php
DS
/
DI
.
THINK_PATH
/www/wwwroot/www.shifair.com/thinkphp/
LIB_PATH
/www/wwwroot/www.shifair.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.shifair.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.shifair.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.shifair.com/
EXTEND_PATH
/www/wwwroot/www.shifair.com/extend/
VENDOR_PATH
/www/wwwroot/www.shifair.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.shifair.com/runtime/
LOG_PATH
/www/wwwroot/www.shifair.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.shifair.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.shifair.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.shifair.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false

404

页面未找到!

抱歉,页面好像去火星了~ 5秒后自动跳转
无跳转请点击进入 世展网首页