6165金沙总站_金沙js93252

[8] ErrorException in Content.php line 14

未定义数组下标: 0

  1. {
  2. public function _initialize()
  3. {
  4. parent::_initialize(); // TODO: Change the autogenerated stub
  5. $c_id = input("c_id");
  6. $id = input("id");
  7. $leftList = db('content_class_tb')->where('is_delete', 0)->where('p_id', $c_id)->order("sort_id desc,id")->field('id,p_id,title')->select();
  8. // dump($leftList);die();
  9. if(!$id){
  10. $id=$leftList[0]['id'];
  11. }
  12. $this->c_id=$c_id;
  13. $this->id=$id;
  14. $curClassTitle = db('content_class_tb')->where('id',$c_id)->value('title');
  15. $curRs = db('content_class_tb')->where('id',$id)->field('title,list_type')->find();
  16. $bannerRs = db('banner_tb')->where('c_id', 11)->find();
  17. $this->list_type=$curRs['list_type'];
  18. $this->assign('curClassTitle', $curClassTitle);
  19. $this->assign('curTitle', $curRs['title']);

Call Stack

  1. in Content.php line 14
  2. at Error::appError(8, 'Undefined offset: 0', '/www/wwwroot/www.plv...', 14, ['c_id' => '11', 'id' => null, 'leftList' => []]) in Content.php line 14
  3. at Content->_initialize() in Controller.php line 59
  4. at Controller->__construct(object(Request))
  5. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  6. at App::invokeClass('app\www\controller\C...') in Loader.php line 479
  7. at Loader::controller('content', 'controller', false, 'Error') in App.php line 580
  8. at App::module(['www', 'content', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  9. at App::exec(['type' => 'module', 'module' => ['www', 'content', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/www/wwwroot/www.plv...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
0if01bk6hmbpih90ptel0gr8mn
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
PHPSESSID=0if01bk6hmbpih90ptel0gr8mn
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.plvtc.cn
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
PATH_INFO
/www/content/index/c_id/www/zt/zt_list/c_id/11
REDIRECT_STATUS
200
SERVER_NAME
www.plvtc.cn
SERVER_PORT
80
SERVER_ADDR
47.93.89.20
REMOTE_PORT
56932
REMOTE_ADDR
45.39.65.162
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.plvtc.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
//www/content/index/c_id/www/zt/zt_list/c_id/11
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/www/content/index/c_id/www/zt/zt_list/c_id/11
SCRIPT_FILENAME
/www/wwwroot/www.plvtc.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1685826465.359
REQUEST_TIME
1685826465
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.plvtc.cn/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1685826465.3595
THINK_START_MEM
368248
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.plvtc.cn/thinkphp/
LIB_PATH
/www/wwwroot/www.plvtc.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/www.plvtc.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.plvtc.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.plvtc.cn/
EXTEND_PATH
/www/wwwroot/www.plvtc.cn/extend/
VENDOR_PATH
/www/wwwroot/www.plvtc.cn/vendor/
RUNTIME_PATH
/www/wwwroot/www.plvtc.cn/runtime/
LOG_PATH
/www/wwwroot/www.plvtc.cn/runtime/log/
CACHE_PATH
/www/wwwroot/www.plvtc.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/www.plvtc.cn/runtime/temp/
CONF_PATH
/www/wwwroot/www.plvtc.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
BASE_SITE_ROOT
PLUGINS_SITE_ROOT
/static/plugins
ADMIN_SITE_ROOT
/static/admin
HOME_SITE_ROOT
/static/www
WWW_SITE_ROOT
/static/www
REWRITE_MODEL
false
BASE_SITE_URL
index.php
HOME_SITE_URL
index.php/www
EN_SITE_URL
index.php/en
ADMIN_SITE_URL
index.php/admin
API_SITE_URL
index.php/api
UPLOAD_SITE_URL
uploads
EXAMPLES_SITE_URL
examples
SESSION_EXPIRE
3600
PUBLIC_PATH
/www/wwwroot/www.plvtc.cn/public
PLUGINS_PATH
/www/wwwroot/www.plvtc.cn/plugins
BASE_DATA_PATH
/www/wwwroot/www.plvtc.cn/public/data
BASE_UPLOAD_PATH
/www/wwwroot/www.plvtc.cn/public/uploads
TIMESTAMP
1685826465
DIR_HOME
www
DIR_ADMIN
admin
DIR_UPLOAD
public/uploads
ATTACH_PATH
www
ATTACH_COMMON
www/common
ATTACH_AVATAR
www/avatar
ATTACH_INVITER
www/inviter
ATTACH_EDITOR
www/editor
ATTACH_MEMBERTAG
www/membertag
ATTACH_IDCARD_IMAGE
www/idcard_image
ATTACH_GOODS
www/store/goods
ATTACH_TAOBAO
www/store/taobao
ATTACH_LOGIN
www/login
ATTACH_ARTICLE
www/article
ATTACH_BRAND
www/brand
ATTACH_GOODS_CLASS
www/goods_class
ATTACH_ADV
www/adv
ATTACH_APPADV
www/appadv
ATTACH_ACTIVITY
www/activity
ATTACH_WATERMARK
www/watermark
ATTACH_POINTPROD
www/pointprod
ATTACH_GROUPBUY
www/groupbuy
ATTACH_VOUCHER
www/voucher
ATTACH_MOBILE
mobile
ATTACH_MALBUM
www/member
TPL_SHOP_NAME
default
TPL_ADMIN_NAME
default
TPL_DELIVERY_NAME
default
TPL_m_name
default
DEFAULT_CONNECT_SMS_TIME
60
MD5_KEY
a2382918dbb49c8643f19bc3ab90ecf9
CHARSET
utf-8
ALLOW_IMG_EXT
jpg,png,gif,bmp,jpeg
ALLOW_FILE_EXT
jpg,png,gif,bmp,jpeg,doc,docx,pdf,rar,zip,xlsx,xls,txt
HTTP_TYPE
http://
VERIFY_CODE_INVALIDE_MINUTE
15
DEFAULT_SPEC_COLOR_ID
1
GOODS_IMAGES_WIDTH
240,480,1280
GOODS_IMAGES_HEIGHT
240,480,1280
GOODS_IMAGES_EXT
_240,_480,_1280
COMMON_IMAGES_EXT
_small,_normal,_big
ORDER_STATE_CANCEL
0
ORDER_STATE_NEW
10
ORDER_STATE_PAY
20
ORDER_STATE_SEND
30
ORDER_STATE_SUCCESS
40
ORDER_DEL_STATE_DEFAULT
0
ORDER_DEL_STATE_DELETE
1
ORDER_DEL_STATE_DROP
2
ORDER_EVALUATE_TIME
1296000
OFFLINE_ORDER_CANCEL_TIME
3
O_STATE_0
0
O_STATE_1
1
O_STATE_2
2
O_STATE_3
3
O_STATE_4
4
Baidu
sogou