[8] ErrorException in Yanshi.php line 64

未定义变量: va

  1. $lists = trim($rjfls['value']);
  2. $listarrs = explode("\r\n", $lists);
  3. array_unshift($listarrs,'全部产品');
  4. foreach($listarrs as $k3=>$v3){
  5. $k4 = $k3+1;
  6. if($lxs['1'] == $k4){
  7. $va = $v3;
  8. }
  9. }
  10. if($va == '全部产品'){
  11. $data =Db::name('cms_channel')->where(['outlink'=>$url2])->find();
  12. $count = Db::name('sys')->where(['id'=>['gt',1]])->count();
  13. $where['query']['lx'] = "1";
  14. $list = Db::name('sys')->where(['id'=>['gt',1]])->paginate(10,$count,$where);
  15. }else{
  16. $data =Db::name('cms_channel')->where(['outlink'=>$url2])->find();
  17. $count = Db::name('sys')->where(['id'=>['gt',1],'xtfl'=>$va])->count();
  18. $where['query']['lx'] = $_GET['lx'];
  19. $list = Db::name('sys')->where(['id'=>['gt',1],'xtfl'=>$va])->paginate(10,$count,$where);

Call Stack

  1. in Yanshi.php line 64
  2. at Error::appError(8, 'Undefined variable: ...', '/data/www/ses/addons...', 64, ['url1' => 'bfc.cnmai.com/yanshi...', 'url3' => 'http://bfc.cnmai.com...', 'arr2' => ['http://bfc.cnmai.com...', 't=bfc'], ...]) in Yanshi.php line 64
  3. at Yanshi->index()
  4. at call_user_func_array([object(Yanshi), 'index'], []) in Route.php line 76
  5. at Route->execute('web', 'yanshi', 'index')
  6. at ReflectionMethod->invokeArgs(object(Route), ['web', 'yanshi', 'index']) in App.php line 343
  7. at App::invokeMethod(['\think\addons\Route', 'execute'], ['t' => 'bfc', 'addon' => 'web', 'controller' => 'yanshi', ...]) in App.php line 470
  8. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'web', 'controller' => 'yanshi', 'action' => 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/data/www/ses/thinkp...') in index.php line 24

Environment Variables

GET Data

t
bfc
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_CONNECTION
close
HTTP_X_FORWARDED_FOR
18.212.87.137
HTTP_HOST
bfc.cnmai.com
HTTP_REMOTEIP
18.212.87.137
SCRIPT_FILENAME
/data/www/ses/public/index.php
REDIRECT_STATUS
200
SERVER_NAME
www.cnmai.com
SERVER_PORT
80
SERVER_ADDR
172.16.1.227
REMOTE_PORT
48438
REMOTE_ADDR
100.120.33.166
SERVER_SOFTWARE
nginx/1.6.2
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/data/www/ses/public
DOCUMENT_URI
/index.php
REQUEST_URI
/yanshi/?t=bfc
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/yanshi/&t=bfc
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711671405.7738
REQUEST_TIME
1711671405
PATH_INFO
/yanshi/
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/data/www/ses/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711671405.8074
THINK_START_MEM
366968
EXT
.php
DS
/
THINK_PATH
/data/www/ses/thinkphp/
LIB_PATH
/data/www/ses/thinkphp/library/
CORE_PATH
/data/www/ses/thinkphp/library/think/
TRAIT_PATH
/data/www/ses/thinkphp/library/traits/
ROOT_PATH
/data/www/ses/
EXTEND_PATH
/data/www/ses/extend/
VENDOR_PATH
/data/www/ses/vendor/
RUNTIME_PATH
/data/www/ses/runtime/
LOG_PATH
/data/www/ses/runtime/log/
CACHE_PATH
/data/www/ses/runtime/cache/
TEMP_PATH
/data/www/ses/runtime/temp/
CONF_PATH
/data/www/ses/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/data/www/ses/addons/