[8] ErrorException in Article.php line 43

未定义数组下标: 0

  1. {
  2. $detail = Db::name('Article')->where(['id'=>$id])->find();
  3. return $detail;
  4. }
  5. //上一篇
  6. public function pre($id,$cid)
  7. {
  8. $create_time = Db::name('Article')->where('id',$id)->column('create_time');
  9. $create_time = $create_time[0];
  10. $map['create_time'] = ['GT',$create_time];
  11. $map['status'] = 1;
  12. $map['article_cate_id'] = $cid;
  13. return Db::name('Article')->where($map)->order('create_time asc')->limit('1')->find();
  14. }
  15. //下一篇
  16. public function next($id,$cid)
  17. {

Call Stack

  1. in Article.php line 43
  2. at Error::appError(8, 'Undefined offset: 0', '/home/wwwroot/jxjxed...', 43, ['id' => '183', 'cid' => '3', 'create_time' => []]) in Article.php line 43
  3. at Article->pre('183', '3') in IndexController.php line 120
  4. at IndexController->detail(object(Request))
  5. at ReflectionMethod->invokeArgs(object(IndexController), [object(Request)]) in App.php line 343
  6. at App::invokeMethod([object(IndexController), 'detail'], []) in App.php line 611
  7. at App::module(['index', 'index', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  8. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'detail'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in index.php line 41

Environment Variables

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

Server/Request Data

USER
jxjxedunet
HOME
/home/wwwroot/jxjxedunet
FCGI_ROLE
RESPONDER
REDIRECT_STATUS
200
proxy-nokeepalive
1
HTTP_X_REAL_IP
3.236.219.157
HTTP_HOST
hzrczx.net
HTTP_CONNECTION
close
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
SERVER_NAME
hzrczx.net
SERVER_ADDR
127.0.0.1
SERVER_PORT
80
REMOTE_ADDR
3.236.219.157
DOCUMENT_ROOT
/home/wwwroot/jxjxedunet/wwwroot
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/home/wwwroot/jxjxedunet/wwwroot
SERVER_ADMIN
[no address given]
SCRIPT_FILENAME
/home/wwwroot/jxjxedunet/wwwroot/index.php
REMOTE_PORT
55364
REDIRECT_URL
/detail/id/183/cid/3.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.0
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/detail/id/183/cid/3.html
SCRIPT_NAME
/index.php
PATH_INFO
/detail/id/183/cid/3.html
PATH_TRANSLATED
redirect:/index.php/detail/id/183/cid/3.html/id/183/cid/3.html
PHP_SELF
/index.php/detail/id/183/cid/3.html
REQUEST_TIME_FLOAT
1711645619.4645
REQUEST_TIME
1711645619
Environment Variables
empty

ThinkPHP Constants

VAE_VERSION
1.0.1
LAYUI_VERSION
2.4.5
APP_PATH
/home/wwwroot/jxjxedunet/wwwroot/app/
VAE_ROOT
/home/wwwroot/jxjxedunet/wwwroot/
PLUGIN_PATH
/home/wwwroot/jxjxedunet/wwwroot/plugin/
VAE_LTR
/home/wwwroot/jxjxedunet/wwwroot/listenrain/vae/
CONF_PATH
/home/wwwroot/jxjxedunet/wwwroot/data/conf/
RUNTIME_PATH
/home/wwwroot/jxjxedunet/wwwroot/data/runtime/
THINK_VERSION
5.0.24
THINK_START_TIME
1711645619.4648
THINK_START_MEM
238176
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/jxjxedunet/wwwroot/listenrain/thinkphp/
LIB_PATH
/home/wwwroot/jxjxedunet/wwwroot/listenrain/thinkphp/library/
CORE_PATH
/home/wwwroot/jxjxedunet/wwwroot/listenrain/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/jxjxedunet/wwwroot/listenrain/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/jxjxedunet/wwwroot/
EXTEND_PATH
/home/wwwroot/jxjxedunet/wwwroot/extend/
VENDOR_PATH
/home/wwwroot/jxjxedunet/wwwroot/vendor/
LOG_PATH
/home/wwwroot/jxjxedunet/wwwroot/data/runtime/log/
CACHE_PATH
/home/wwwroot/jxjxedunet/wwwroot/data/runtime/cache/
TEMP_PATH
/home/wwwroot/jxjxedunet/wwwroot/data/runtime/temp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false