[8] ErrorException in Archives.php line 282

未定义数组索引: 三爷的小祖宗A爆了!

  1. $tagList = Tag::where('name', 'in', $tags)->column('name,id');
  2. $tagList2 = Tag::where('name', 'in', $tags)->column('id,diyname');
  3. }
  4. $tagList = array_change_key_case($tagList, CASE_LOWER);
  5. $time = $data['createtime'] ?? time();
  6. $list = [];
  7. foreach ($tags as $k => $v) {
  8. $v_lower = strtolower($v);
  9. $dyname = $tagList2[$tagList[$v]]? $tagList2[$tagList[$v]]:$v;
  10. $vars = [':name' => $v, ':diyname' => $dyname, ':id' => isset($tagList[$v_lower]) ? $tagList[$v_lower] : '0', ':year' => date("Y", $time), ':month' => date("m", $time), ':day' => date("d", $time)];
  11. $list[] = ['name' => $v, 'url' => addon_url('cms/tag/index', $vars)];
  12. }
  13. $data['taglist'] = $list;
  14. return $list;
  15. }

Call Stack

  1. in Archives.php line 282
  2. at Error::appError(8, 'Undefined index: 三...', '/ssd/wwwroot/fast.go...', 282, ['value' => '', 'data' => ['id' => 10311, 'user_id' => 0, 'channel_id' => 131, ...], 'tags' => ['...', '唐夕', '唐夕怀', ...], ...]) in Archives.php line 282
  3. at Archives->getTaglistAttr('', ['id' => 10311, 'user_id' => 0, 'channel_id' => 131, ...]) in Archives.php line 178
  4. at Archives->index()
  5. at call_user_func_array([object(Archives), 'index'], []) in Route.php line 78
  6. at Route->execute('cms', 'archives', 'index')
  7. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'archives', 'index']) in App.php line 343
  8. at App::invokeMethod(['\think\addons\Route', 'execute'], ['catename' => '18', 'id' => '18147', 'addon' => 'cms', ...]) in App.php line 470
  9. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'archives', 'action' => 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/ssd/wwwroot/fast.go...') in index.php line 63

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_ALI_CDN_ADAPTIVE_PORTS
443,443
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_ALI_CDN_REAL_IP
54.211.203.45
HTTP_X_CLIENT_SCHEME
https
HTTP_X_FORWARDED_FOR
54.211.203.45
HTTP_ALI_SWIFT_STAT_HOST
level2.www.gogotxt.com
HTTP_ALI_SWIFT_LOG_HOST
www.gogotxt.com
HTTP_EAGLEEYE_TRACEID
3adad01d17116645254411033e
HTTP_VIA
cn192.l1, kunlun1.cn192, l2cn2647.l2, cache62.l2cn2647
HTTP_HOST
www.gogotxt.com
PATH_INFO
/18/18147/
REDIRECT_STATUS
200
SERVER_NAME
fast.gogotxt.com
SERVER_PORT
443
SERVER_ADDR
154.7.7.178
REMOTE_PORT
45894
REMOTE_ADDR
153.35.52.210
SERVER_SOFTWARE
nginx/1.20.2
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/ssd/wwwroot/fast.gogotxt.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/18/18147/
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/18/18147/
SCRIPT_FILENAME
/ssd/wwwroot/fast.gogotxt.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711664525.9966
REQUEST_TIME
1711664525
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/ssd/wwwroot/fast.gogotxt.com/public/../application/
THINK_VERSION
5.0.25
THINK_START_TIME
1711664525.9977
THINK_START_MEM
423608
EXT
.php
DS
/
THINK_PATH
/ssd/wwwroot/fast.gogotxt.com/thinkphp/
LIB_PATH
/ssd/wwwroot/fast.gogotxt.com/thinkphp/library/
CORE_PATH
/ssd/wwwroot/fast.gogotxt.com/thinkphp/library/think/
TRAIT_PATH
/ssd/wwwroot/fast.gogotxt.com/thinkphp/library/traits/
ROOT_PATH
/ssd/wwwroot/fast.gogotxt.com/
EXTEND_PATH
/ssd/wwwroot/fast.gogotxt.com/extend/
VENDOR_PATH
/ssd/wwwroot/fast.gogotxt.com/vendor/
RUNTIME_PATH
/ssd/wwwroot/fast.gogotxt.com/runtime/
LOG_PATH
/ssd/wwwroot/fast.gogotxt.com/runtime/log/
CACHE_PATH
/ssd/wwwroot/fast.gogotxt.com/runtime/cache/
TEMP_PATH
/ssd/wwwroot/fast.gogotxt.com/runtime/temp/
CONF_PATH
/ssd/wwwroot/fast.gogotxt.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/ssd/wwwroot/fast.gogotxt.com/addons/