[8] ErrorException in Index.php line 494

未定义数组下标: 0

  1. //文章详情页/图片
  2. $listxs=Db::table('ws_goods')->field('*,FROM_UNIXTIME(adddate, "%Y-%m-%d") AS adddate')->alias('a')->join('ws_goodstype w','a.goodstypeid = w.id')->where('a.id',$id)->select();
  3. // $listxs = Db::name('goods')->field('*,FROM_UNIXTIME(adddate, "%Y-%m-%d") AS adddate')->where('id',$id)->limit(1)->order('id asc')->select();
  4. $this->assign('listxs',$listxs);
  5. $liulanliang=$listxs[0]['liulanliang'];
  6. $this->assign('liulanliang',$liulanliang);
  7. //刷新浏览量

Call Stack

  1. in Index.php line 494
  2. at Error::appError(8, 'Undefined offset: 0', '/home/www/web1/yiyua...', 494, ['goodstypeid' => '17', 'listtw' => [['id' => 17, 'usertype' => 1, 'name' => '专家团队', ...]], 'listtwb' => 0, ...]) in Index.php line 494
  3. at Index->expert()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  5. at App::invokeMethod([object(Index), 'expert'], []) in App.php line 611
  6. at App::module(['index', 'index', 'expert'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  7. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'expert']], ['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('/home/www/web1/yiyua...') in index.php line 17

Environment Variables

GET Data

goodstypeid
17
id
141
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_REDIRECT_REDIRECT_STATUS
200
REDIRECT_REDIRECT_STATUS
200
REDIRECT_STATUS
200
proxy-nokeepalive
1
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.healthyeyes.cn
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
LD_LIBRARY_PATH
/www/server/apache/lib
SERVER_SIGNATURE
<address>Apache Server at www.healthyeyes.cn Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
www.healthyeyes.cn
SERVER_ADDR
172.16.133.116
SERVER_PORT
80
REMOTE_ADDR
184.72.135.210
DOCUMENT_ROOT
/home/www/web1/yiyuan/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/home/www/web1/yiyuan/public
SERVER_ADMIN
webmaster@example.com
SCRIPT_FILENAME
/home/www/web1/yiyuan/public/index.php
REMOTE_PORT
60924
REDIRECT_URL
/index/index/expert.html
REDIRECT_QUERY_STRING
goodstypeid=17&id=141
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
goodstypeid=17&id=141
REQUEST_URI
/expert_17/141.html
SCRIPT_NAME
/index.php
PATH_INFO
/index/index/expert.html
PATH_TRANSLATED
redirect:/index.php/index/index/expert.html/expert.html
PHP_SELF
/index.php/index/index/expert.html
REQUEST_TIME_FLOAT
1711679864.0041
REQUEST_TIME
1711679864
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/www/web1/yiyuan/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711679864.0045
THINK_START_MEM
265528
EXT
.php
DS
/
THINK_PATH
/home/www/web1/yiyuan/thinkphp/
LIB_PATH
/home/www/web1/yiyuan/thinkphp/library/
CORE_PATH
/home/www/web1/yiyuan/thinkphp/library/think/
TRAIT_PATH
/home/www/web1/yiyuan/thinkphp/library/traits/
ROOT_PATH
/home/www/web1/yiyuan/
EXTEND_PATH
/home/www/web1/yiyuan/extend/
VENDOR_PATH
/home/www/web1/yiyuan/vendor/
RUNTIME_PATH
/home/www/web1/yiyuan/runtime/
LOG_PATH
/home/www/web1/yiyuan/runtime/log/
CACHE_PATH
/home/www/web1/yiyuan/runtime/cache/
TEMP_PATH
/home/www/web1/yiyuan/runtime/temp/
CONF_PATH
/home/www/web1/yiyuan/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false