[8] ErrorException in Index.php line 68

未定义数组下标: 1

  1. $this->assign('y',0);
  2. $file=$user->where('deletestatu',0)->where('channel',$channelinfo['Id'])->order('click desc')->select();
  3. $this->assign('file3',$file);
  4. return $this->fetch("index/list");
  5. }else{
  6. //获取文章ID
  7. preg_match('~/[0-9]*/([0-9]*).html~', $url, $matches);
  8. $fileid = $matches[1];
  9. //获取文章信息
  10. $user=new Bzt_file();
  11. $file=$user->where('deletestatu',0)->where('Id',$fileid)->order('uptime desc')->find();
  12. $this->assign('file',$file);
  13. //上一条
  14. $file2=$user->where('deletestatu',0)->where('Id','<',$fileid)->where('channel',$file['channel'])->order('Id desc')->find();
  15. $this->assign('file2',$file2);

Call Stack

  1. in Index.php line 68
  2. at Error::appError(8, 'Undefined offset: 1', 'C:\wwwroot\xd\applic...', 68, ['req' => object(Request), 'url' => 'http://xdhuntergroup...', 'user' => object(Bzt_slide), ...]) in Index.php line 68
  3. at Index->index()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  5. at App::invokeMethod([object(Index), 'index'], []) in App.php line 611
  6. at App::module(['index', 'index', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  7. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'index'], '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('C:\wwwroot\xd\thinkp...') in index.php line 17

Environment Variables

GET Data

/a/xinwenzhongxin/xingyedongtai/240_html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

PATH
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\QCloud\Monitor\Barad;C:\Program Files\python;C:\Program Files\python\Scripts;;C:\BtSoft\panel\script;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
SYSTEMROOT
C:\Windows
COMSPEC
C:\Windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\Windows
_FCGI_SHUTDOWN_EVENT_
24936
HTTP_CONNECTION
close
SCRIPT_NAME
/index.php
REQUEST_URI
/a/xinwenzhongxin/xingyedongtai/240.html
QUERY_STRING
/a/xinwenzhongxin/xingyedongtai/240.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
/a/xinwenzhongxin/xingyedongtai/240.html
REDIRECT_URL
/a/xinwenzhongxin/xingyedongtai/240.html
REMOTE_PORT
34008
SCRIPT_FILENAME
C:/wwwroot/xd/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
C:/wwwroot/xd/public
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
C:/wwwroot/xd/public
REMOTE_ADDR
44.200.39.110
SERVER_PORT
80
SERVER_ADDR
172.16.255.6
SERVER_NAME
xdhuntergroup.com
SERVER_SOFTWARE
Apache/2.4.51 (Win64) OpenSSL/1.1.1l mod_fcgid/2.3.9a
SERVER_SIGNATURE
SystemRoot
C:\Windows
HTTP_HOST
xdhuntergroup.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
REDIRECT_STATUS
200
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711649190.9302
REQUEST_TIME
1711649190
PATH_INFO
/a/xinwenzhongxin/xingyedongtai/240.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
C:\wwwroot\xd\public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711649190.9315
THINK_START_MEM
257040
EXT
.php
DS
\
THINK_PATH
C:\wwwroot\xd\thinkphp\
LIB_PATH
C:\wwwroot\xd\thinkphp\library\
CORE_PATH
C:\wwwroot\xd\thinkphp\library\think\
TRAIT_PATH
C:\wwwroot\xd\thinkphp\library\traits\
ROOT_PATH
C:\wwwroot\xd\
EXTEND_PATH
C:\wwwroot\xd\extend\
VENDOR_PATH
C:\wwwroot\xd\vendor\
RUNTIME_PATH
C:\wwwroot\xd\runtime\
LOG_PATH
C:\wwwroot\xd\runtime\log\
CACHE_PATH
C:\wwwroot\xd\runtime\cache\
TEMP_PATH
C:\wwwroot\xd\runtime\temp\
CONF_PATH
C:\wwwroot\xd\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true