[8] ErrorException in Ccontroller.php line 320

未定义数组下标: 0

  1. public function c_bookchapter($page=1)
  2. {
  3. $id = input('id');
  4. //书籍信息
  5. $info = Db::name('Books')->where('id',$id)->find();
  6. if ($info['lock_status']==0){$this->error('改书本已锁定,暂时无法查看','index/index');}
  7. if(empty($id)||!is_numeric($id)||empty($info)){ return $this->fetch('public/404');}
  8. $jindu = Books::getProgresList();
  9. $info['progress_status'] = $jindu[$info['progress_status']];
  10. $info['type_list'] = $this->type[$info['type_list']];
  11. $info['said_list'] = $this->said[$info['said_list']];
  12. $info['style_list'] = $this->style[$info['style_list']];
  13. $info['epoch_list'] = $this->epoch[$info['epoch_list']];
  14. $info['range_list'] = $info['range_list'] ? $this->range[$info['range_list']] :"暂无";
  15. $info['original_list'] = $info['original_list'] ? $this->original[$info['original_list']] : "暂无";
  16. $info['appetency_list'] = $info['appetency_list'] ? $this->appetency[$info['appetency_list']]: "暂无";
  17. $info['perspective_list'] = $info['perspective_list'] ? $this->perspective[$info['perspective_list']]: "暂无";
  18. $info['series_no'] = $info['series_no'] ? Db::name('Chapter_series')->where('id',$info['series_no'])->value('name') : "无属性新列";
  19. //$info['lable'] = implode(' ', \app\common\model\Books::getLableStr($info['lable_str']));

Call Stack

  1. in Ccontroller.php line 320
  2. at Error::appError(8, 'Undefined offset: 0', '/www/wwwroot/www.yjw...', 320, ['page' => 1, 'id' => '1782', 'info' => ['id' => 1782, 'user_id' => 1398, 'admin_id' => 1, ...], ...]) in Ccontroller.php line 320
  3. at Ccontroller->c_bookchapter(1)
  4. at ReflectionMethod->invokeArgs(object(Ccontroller), [1]) in App.php line 343
  5. at App::invokeMethod([object(Ccontroller), 'c_bookchapter'], []) in App.php line 611
  6. at App::module(['home', 'ccontroller', 'c_bookchapter'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['home', 'ccontroller', 'c_bookchapter']], ['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.yjw...') in index.php line 34

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
yjwxc.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/home/ccontroller/c_bookchapter/id/1782.html
REDIRECT_STATUS
200
SERVER_NAME
www.yjwxc.com
SERVER_PORT
80
SERVER_ADDR
172.21.180.252
REMOTE_PORT
51044
REMOTE_ADDR
3.93.173.205
SERVER_SOFTWARE
nginx/1.18.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.yjwxc.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/home/ccontroller/c_bookchapter/id/1782.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/home/ccontroller/c_bookchapter/id/1782.html
SCRIPT_FILENAME
/www/wwwroot/www.yjwxc.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710831059.3797
REQUEST_TIME
1710831059
Environment Variables
empty

ThinkPHP Constants

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