[8] ErrorException in Index.php line 445

未定义数组索引: name

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

Call Stack

  1. in Index.php line 445
  2. at Error::appError(8, 'Undefined index: nam...', 'D:\wwwroot\www.nhzs....', 445, ['id' => '299', 'data' => ['count' => 0], 'anlilen' => 0, ...]) in Index.php line 445
  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('D:\wwwroot\www.nhzs....') in index.php line 17

Environment Variables

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

Server/Request Data

ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
BT_PANEL
D:\bt\BtSoft\panel
BT_PYTHON
C:\Program Files\python
BT_SETUP
D:\bt\BtSoft
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
iZ9hcfqc2uxtsoZ
ComSpec
C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK
NO
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
4
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\bt\BtSoft\panel\script;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
3e04
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files (x86)
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
UNRAR_LIB_PATH
C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN
WORKGROUP
USERNAME
iZ9hcfqc2uxtsoZ$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
windows_tracing_flags
3
windows_tracing_logfile
C:\BVTBin\Tests\installpackage\csilogfile.log
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.nhzs.com
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_STATUS
200
SERVER_NAME
www.nhzs.com
SERVER_PORT
80
SERVER_ADDR
120.55.113.243
REMOTE_PORT
20001
REMOTE_ADDR
154.212.239.71
SERVER_SOFTWARE
nginx/1.12.2
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
D:/wwwroot/www.nhzs.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/info_sjs/299.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/info_sjs/299.html
SCRIPT_FILENAME
D:/wwwroot/www.nhzs.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1600684653.7774
REQUEST_TIME
1600684653
PATH_INFO
/info_sjs/299.html
Environment Variables
empty

ThinkPHP Constants

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