[8] ErrorException in Index.php line 313

未定义数组索引: name

  1. // 作品数量
  2. $anlilen= Db::table('anli')->where(['sjs'=>$data['name']])->count();
  3. $anlivrlen= Db::table('anlivr')->where(['sjs'=>$data['name']])->count();
  4. $data['count'] = $anlivrlen+$anlilen;
  5. // 代表作品
  6. $zuopin = Db::table('anli')
  7. ->field('id,title,litpic,mianji,fengge,huxing,click,vrurl')
  8. ->order('id desc')
  9. ->where('sjs',$data['name'])
  10. ->select();
  11. $anlivr = Db::table('anlivr')
  12. ->field('id,title,litpic,mianji,fengge,huxing,click,vrurl')
  13. ->order('id desc')
  14. ->where('sjs',$data['name'])
  15. ->select();
  16. $arranli = array_merge($zuopin,$anlivr);
  17. foreach ($arranli as $key => $value) {
  18. $arranli[$key]['litpic'] = str_replace('\\','/',$value['litpic']);

Call Stack

  1. in Index.php line 313
  2. at Error::appError(8, 'Undefined index: nam...', '/www/wwwroot/t6gj.co...', 313, ['type' => '设计团队', 'bn' => null, 'id' => '19', ...]) in Index.php line 313
  3. at Index->info_sjs()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  5. at App::invokeMethod([object(Index), 'info_sjs'], []) in App.php line 611
  6. at App::module(['index', 'index', 'info_sjs'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  7. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'info_sjs'], 'convert' => false], ['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/t6gj.co...') in index.php line 17

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/t6gj.com/public/index.php
QUERY_STRING
s=/sjs/19.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/sjs/19.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/t6gj.com/public
SERVER_PROTOCOL
HTTP/2.0
REQUEST_SCHEME
https
HTTPS
on
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.18.0
REMOTE_ADDR
3.238.228.191
REMOTE_PORT
49076
SERVER_ADDR
172.24.76.133
SERVER_PORT
443
SERVER_NAME
t6gj.com
REDIRECT_STATUS
200
PATH_INFO
/sjs/19.html
HTTP_HOST
www.t6gj.com
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_REFERER
http://www.t6gj.com/sjs/19.html
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711639724.844
REQUEST_TIME
1711639724
Environment Variables
empty

ThinkPHP Constants

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