中国·6163银河.net163.am(股份)有限公司-Sogou百科

[8] ErrorException in Content.php line 233

未定义数组下标: 1

  1. // dump($arr);
  2. // 判断 url 有没有 语言标识
  3. if (!in_array(cookie('home_lang'), $arr)) {
  4. // echo $arr[0];
  5. return '/' . $arr[0];
  6. } else {
  7. //其他语言 url 有 语言标识
  8. return '/' . $arr[0] . '/' . $arr[1];
  9. }
  10. }
  11. // 根据父类id找所有子类 id,包括全部层级
  12. public function get_ids($pid)
  13. {
  14. $data = Db::name('cate')->field('id,pid')->where('is_show', 1)->select();
  15. $res = get_ids($data, $pid);
  16. $res[] = intval($pid);

Call Stack

  1. in Content.php line 233
  2. at Error::appError(8, 'Undefined offset: 1', '/home/wwwroot/xinghe...', 233, ['pathinfo' => 'cn', 'arr' => ['cn']]) in Content.php line 233
  3. at Content->pa() in Content.php line 67
  4. at Content->get_list(31, '', 12, 'content', '', 'a:0:{}', 'is_top desc,sort,id ...', 1, 1, 0, 0, 0, 0) in b484fe51ad52ca2da8ba3df2b4ecc00b.php line 179
  5. at include('/home/wwwroot/xinghe...') in File.php line 59
  6. at File->read('/home/wwwroot/xinghe...', ['links' => [], 'links2' => [], 'homelink' => '/', ...]) in Template.php line 226
  7. at Template->fetch('/home/wwwroot/xinghe...', ['links' => [], 'links2' => [], 'homelink' => '/', ...], []) in Think.php line 93
  8. at Think->fetch('/home/wwwroot/xinghe...', ['links' => [], 'links2' => [], 'homelink' => '/', ...], []) in View.php line 192
  9. at View->fetch('index@/cn/index', ['links' => [], 'links2' => [], 'homelink' => '/', ...], [], false) in View.php line 42
  10. at View->output('index@/cn/index') in Response.php line 396
  11. at Response->getContent() in Response.php line 128
  12. at Response->send() in index.php line 24

Environment Variables

GET Data
/cn
POST Dataempty
Filesempty
Cookies
PHPSESSID o4qqng0t44tqh3m60vjnedbt8b
home_lang cn
Sessionempty
Server/Request Data
USER xinghecastcom
HOME /home/wwwroot/xinghecastcom
SCRIPT_NAME /index.php
REQUEST_URI /cn
QUERY_STRING /cn
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_QUERY_STRING /cn
REDIRECT_URL /cn
REMOTE_PORT 58786
SCRIPT_FILENAME /home/wwwroot/xinghecastcom/wwwroot/index.php
SERVER_ADMIN [no address given]
CONTEXT_DOCUMENT_ROOT /home/wwwroot/xinghecastcom/wwwroot
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /home/wwwroot/xinghecastcom/wwwroot
REMOTE_ADDR 23.90.23.210
SERVER_PORT 80
SERVER_ADDR 127.0.0.1
SERVER_NAME www.xinghecast.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HTTP_COOKIE PHPSESSID=o4qqng0t44tqh3m60vjnedbt8b; home_lang=cn
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_CONNECTION close
HTTP_HOST www.xinghecast.com
HTTP_X_REAL_IP 23.90.23.210
HTTP_X_FORWARDED_FOR 23.90.23.210
proxy-nokeepalive 1
REDIRECT_STATUS 200
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1735579494.0751
REQUEST_TIME 1735579494
Environment Variablesempty
ThinkPHP Constants
FILTER_VALIDATE_BOOL 258
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
QINIU_FUNCTIONS_VERSION 7.4.0