[8] ErrorException in Index.php line 778

未定义变量: where

  1. if($v['link'] == $queryString){
  2. $list[$k]['active'] = 1;
  3. }else{
  4. $list[$k]['active'] = 2;
  5. }
  6. }
  7. $this->assign('list', $list);
  8. $this->assign('type',$where['type']);
  9. return $this->fetch('/gywm'.$tpl);
  10. }
  11. /**
  12. * 套餐
  13. */
  14. public function tc(){
  15. $tpl = input('tpl');
  16. $tpl = empty($tpl) ? '/1199tc' : '/'.$tpl;

Call Stack

  1. in Index.php line 778
  2. at Error::appError(8, 'Undefined variable: ...', 'D:\wwwroot\www.nhzs....', 778, ['tpl' => '/fzlc', 'queryString' => '/gywm/fzlc', 'list' => [['id' => 38, 'title' => '南鸿动态', 'sort' => 1, ...], ['id' => 41, 'title' => '品牌实力', 'sort' => 1, ...], ['id' => 42, 'title' => '关于我们', 'sort' => 2, ...], ...], ...]) in Index.php line 778
  3. at Index->gywm()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  5. at App::invokeMethod([object(Index), 'gywm'], []) in App.php line 611
  6. at App::module(['index', 'index', 'gywm'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 457
  7. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'gywm'], '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
20000
REMOTE_ADDR
154.92.205.36
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
/gywm/fzlc.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/gywm/fzlc.html
SCRIPT_FILENAME
D:/wwwroot/www.nhzs.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1586222361.3789
REQUEST_TIME
1586222361
PATH_INFO
/gywm/fzlc.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
1586222361.3809
THINK_START_MEM
146176
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