[8] ErrorException in News.php line 206

未定义数组下标: 10

  1. return url('/' . $d['ename']);
  2. }else if($v){
  3. return $v;
  4. }else{
  5. return url('/floor_' . $d['id']);
  6. }
  7. })->withAttr('thumb', function ($v) {
  8. return img($v);
  9. })->withAttr('area', function ($v) {
  10. return empty($v)?'':self::$_CITY['father'][$v]['name'];
  11. })->withAttr('address', function ($v, $d) {
  12. $str = '';
  13. $str .= empty($d['area'])?'':$d['area'];
  14. $str .= empty($d['street'])?'':self::$_CITY['list'][$d['street']]['name'];
  15. return $str . $v;
  16. })->order('[rand]')->limit(6)->select();
  17. //位置指南
  18. $guide = [];

Call Stack

  1. in News.php line 206
  2. at Error::appError(8, 'Undefined offset: 10', '/www/wwwroot/cslou.q...', 206, ['v' => 10]) in News.php line 206
  3. at News->app\index\controller\{closure}(10, ['id' => 567, 'name' => '...', 'ename' => 'zbzgcyyy', ...]) in Query.php line 3292
  4. at Query->getResultAttr(['id' => 567, 'name' => '...', 'ename' => 'zbzgcyyy', ...], ['url' => object(Closure), 'thumb' => object(Closure), 'area' => object(Closure), ...]) in Query.php line 3095
  5. at Query->resultSet([['id' => 2628, 'name' => '...', 'ename' => '', ...], ['id' => 2638, 'name' => '万润时光里', 'ename' => '', ...], ['id' => 746, 'name' => '...', 'ename' => 'xggjgyy', ...], ...]) in Query.php line 3024
  6. at Query->select() in News.php line 212
  7. at News->view()
  8. at ReflectionMethod->invokeArgs(object(News), []) in Container.php line 395
  9. at Container->invokeReflectMethod(object(News), object(ReflectionMethod), ['id' => '704', 'kind' => 'office', 'convert' => false]) in Module.php line 131
  10. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  11. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  12. at Middleware->think\{closure}(object(Request))
  13. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  14. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  15. at Module->exec() in Dispatch.php line 168
  16. at Dispatch->run() in App.php line 432
  17. at App->think\{closure}(object(Request), object(Closure), null)
  18. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  19. at Middleware->think\{closure}(object(Request))
  20. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  21. at Middleware->dispatch(object(Request)) in App.php line 435
  22. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_ALI_SWIFT_5XX_NO_RETRY on
HTTP_ALI_TPROXY_HTTPDNS on
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_ALI_CDN_REAL_IP 3.235.42.157
HTTP_X_CLIENT_SCHEME http
HTTP_X_FORWARDED_FOR 3.235.42.157
HTTP_ALI_SWIFT_STAT_HOST level2.www.cslou.com
HTTP_ALI_SWIFT_LOG_HOST www.cslou.com
HTTP_EAGLEEYE_TRACEID 3adad01617108324308431973e
HTTP_VIA cn192.l1, kunlun5.cn192, l2cn3022.l2, cache76.l2cn3022
HTTP_HOST www.cslou.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.cslou.com
SERVER_PORT 80
SERVER_ADDR 172.17.55.224
REMOTE_PORT 40288
REMOTE_ADDR 180.101.204.216
SERVER_SOFTWARE nginx/1.16.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/cslou.quantify.top/public
DOCUMENT_URI /index.php
REQUEST_URI /news_704.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/news_704.html
SCRIPT_FILENAME /www/wwwroot/cslou.quantify.top/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710832430.8972
REQUEST_TIME 1710832430
Environment Variablesempty
ThinkPHP Constants
PINYIN_DEFAULT 4096
PINYIN_TONE 2
PINYIN_NO_TONE 4
PINYIN_ASCII_TONE 8
PINYIN_NAME 16
PINYIN_KEEP_NUMBER 32
PINYIN_KEEP_ENGLISH 64
PINYIN_UMLAUT_V 128
PINYIN_KEEP_PUNCTUATION 256
0.044208s