[8] ErrorException in ArticleModel.php line 64

未定义数组下标: 0

  1. 'tf_data' => $tf_data,
  2. 'left_nav' => $left_nav
  3. ]);
  4. }
  5. // 会员详情
  6. public function u_data($id){
  7. // 数据
  8. $data = Db::query('SELECT * FROM `niuer_member_list` WHERE member_list_id = '.$id)[0];
  9. // 数据所属栏目
  10. $menu = Db::query('SELECT * FROM `niuer_member_group` WHERE member_group_id = '.$data['member_list_groupid'])[0];
  11. // 栏目父级
  12. @$top_data = Db::query('SELECT menu_name, menu_enname FROM `niuer_menu` WHERE id = 4')[0];
  13. // 上一页
  14. $tf_data['t'] = Db::query('SELECT member_list_id, member_list_nickname FROM `niuer_member_list` WHERE member_list_groupid = '.$data['member_list_groupid'].' AND member_list_id < '.$id.' ORDER BY member_list_id DESC LIMIT 1');
  15. // 下一页
  16. $tf_data['f'] = Db::query('SELECT member_list_id, member_list_nickname FROM `niuer_member_list` WHERE member_list_groupid = '.$data['member_list_groupid'].' AND member_list_id > '.$id.' ORDER BY member_list_id ASC LIMIT 1');

Call Stack

  1. in ArticleModel.php line 64
  2. at Error::appError(8, 'Undefined offset: 0', '/home/wwwroot/sxgdsh...', 64, ['id' => 93]) in ArticleModel.php line 64
  3. at ArticleModel->u_data(93, ['u_data', 'uid=93']) in Template.php line 82
  4. at Template->template()
  5. at ReflectionMethod->invokeArgs(object(Template), []) in App.php line 196
  6. at App::invokeMethod([object(Template), 'template'], []) in App.php line 408
  7. at App::module(['home', 'Template', 'template'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 295
  8. at App::exec(['type' => 'module', 'module' => ['home', 'Template', 'template'], 'convert' => false], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => true, ...]) in App.php line 123
  9. at App::run() in start.php line 18
  10. at require('/home/wwwroot/sxgdsh...') in index.php line 18

Exception Datas

Error Context
id 93

Environment Variables

GET Data

uid
93
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
PATH_TRANSLATED
redirect:/index.php/u_data
PATH_INFO
/u_data
SCRIPT_NAME
/index.php
REQUEST_URI
/u_data?uid=93
QUERY_STRING
uid=93
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
uid=93
REDIRECT_URL
/u_data
REMOTE_PORT
20001
SCRIPT_FILENAME
/www/wwwroot/sxgdsh.com/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/sxgdsh.com
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/www/wwwroot/sxgdsh.com
REMOTE_ADDR
154.219.68.179
SERVER_PORT
80
SERVER_ADDR
211.149.252.39
SERVER_NAME
www.sxgdsh.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.sxgdsh.com Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.sxgdsh.com
proxy-nokeepalive
1
REDIRECT_STATUS
200
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/u_data
REQUEST_TIME_FLOAT
1582791400.7065
REQUEST_TIME
1582791400
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/wwwroot/sxgdsh.com/app/
RUNTIME_PATH
/home/wwwroot/sxgdsh.com/data/runtime/
THINK_VERSION
5.0.7
THINK_START_TIME
1582791400.7084
THINK_START_MEM
379184
EXT
.php
DS
/
THINK_PATH
/home/wwwroot/sxgdsh.com/thinkphp/
LIB_PATH
/home/wwwroot/sxgdsh.com/thinkphp/library/
CORE_PATH
/home/wwwroot/sxgdsh.com/thinkphp/library/think/
TRAIT_PATH
/home/wwwroot/sxgdsh.com/thinkphp/library/traits/
ROOT_PATH
/home/wwwroot/sxgdsh.com/
EXTEND_PATH
/home/wwwroot/sxgdsh.com/extend/
VENDOR_PATH
/home/wwwroot/sxgdsh.com/vendor/
LOG_PATH
/home/wwwroot/sxgdsh.com/data/runtime/log/
CACHE_PATH
/home/wwwroot/sxgdsh.com/data/runtime/cache/
TEMP_PATH
/home/wwwroot/sxgdsh.com/data/runtime/temp/
CONF_PATH
/home/wwwroot/sxgdsh.com/app/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
QINIU_FUNCTIONS_VERSION
7.1.3
ADDON_PATH
/home/wwwroot/sxgdsh.com/addons/