[8] ErrorException in 223deba3e6835c8e6f9f26af19d51fc2.php line 153

未定义变量: list

  1. </div>
  2. </div>
  3. <div class="curriculum_title wrap clearfix">
  4. <div class="left">热门活动</div>
  5. </div>
  6. <div class="liveList wrap clearfix curriculumBox_pbulic activityBox">
  7. <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
  8. <div class="item" style="height: 278px">
  9. <a href="<?php echo url('live/detail'); ?>?distributor_id=<?php echo $distributor_id; ?>&distributor_entry=<?php echo $distributor_entry; ?>&id=<?php echo $item['id']; ?>&type=1">
  10. <div class="activity_title">
  11. <div class="setTitle">
  12. <?php if($item['activity_type'] == 1): ?>
  13. <img src="/static/image/Group.png" /><span>热门拼团</span>
  14. <?php else: ?>
  15. <img src="/static/image/seckill.png" /><span>限时秒杀</span>
  16. <?php endif; ?>

Call Stack

  1. in 223deba3e6835c8e6f9f26af19d51fc2.php line 153
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/wwwapi/...', 153, ['cacheFile' => '/www/wwwroot/wwwapi/...', 'vars' => ['version' => 1711656055, 'returnUrl' => 'https%3A%2F%2Fwww.li...', 'schoolArr' => [['id' => 32, 'parentid' => 0, 'title' => '全国分校', ...], ['id' => 2, 'parentid' => 0, 'title' => '湖南分校', ...], ['id' => 3, 'parentid' => 0, 'title' => '广东分校', ...], ...], ...], 'version' => 1711656055, ...]) in 223deba3e6835c8e6f9f26af19d51fc2.php line 153
  3. at include('/www/wwwroot/wwwapi/...') in File.php line 53
  4. at File->read('/www/wwwroot/wwwapi/...', ['version' => 1711656055, 'returnUrl' => 'https%3A%2F%2Fwww.li...', 'schoolArr' => [['id' => 32, 'parentid' => 0, 'title' => '全国分校', ...], ['id' => 2, 'parentid' => 0, 'title' => '湖南分校', ...], ['id' => 3, 'parentid' => 0, 'title' => '广东分校', ...], ...], ...]) in Template.php line 188
  5. at Template->fetch('/www/wwwroot/wwwapi/...', ['version' => 1711656055, 'returnUrl' => 'https%3A%2F%2Fwww.li...', 'schoolArr' => [['id' => 32, 'parentid' => 0, 'title' => '全国分校', ...], ['id' => 2, 'parentid' => 0, 'title' => '湖南分校', ...], ['id' => 3, 'parentid' => 0, 'title' => '广东分校', ...], ...], ...], []) in Think.php line 86
  6. at Think->fetch('/www/wwwroot/wwwapi/...', ['version' => 1711656055, 'returnUrl' => 'https%3A%2F%2Fwww.li...', 'schoolArr' => [['id' => 32, 'parentid' => 0, 'title' => '全国分校', ...], ['id' => 2, 'parentid' => 0, 'title' => '湖南分校', ...], ['id' => 3, 'parentid' => 0, 'title' => '广东分校', ...], ...], ...], []) in View.php line 163
  7. at View->fetch('live/index', ['version' => 1711656055, 'returnUrl' => 'https%3A%2F%2Fwww.li...', 'schoolArr' => [['id' => 32, 'parentid' => 0, 'title' => '全国分校', ...], ['id' => 2, 'parentid' => 0, 'title' => '湖南分校', ...], ['id' => 3, 'parentid' => 0, 'title' => '广东分校', ...], ...], ...], ['__ROOT__' => '', '__URL__' => '/index/index', '__STATIC__' => '/static', ...], []) in Controller.php line 120
  8. at Controller->fetch('live/index') in Index.php line 83
  9. at Index->live()
  10. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  11. at App::invokeMethod([object(Index), 'live'], []) in App.php line 611
  12. at App::module(['index', 'index', 'live'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  13. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'live']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  14. at App::run() in start.php line 19
  15. at require('/www/wwwroot/wwwapi/...') in index.php line 17

Environment Variables

GET Data

distributor_id
84177
distributor_entry
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "distributor_id": "84177" }

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.liangshiba.com
PATH_INFO
/index/index/live.html
REDIRECT_STATUS
200
SERVER_NAME
www.liangshiba.com
SERVER_PORT
443
SERVER_ADDR
172.17.230.171
REMOTE_PORT
52996
REMOTE_ADDR
34.200.248.66
SERVER_SOFTWARE
nginx/1.16.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/wwwapi/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/index/live.html?distributor_id=84177&distributor_entry=
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/index/live.html&distributor_id=84177&distributor_entry=
SCRIPT_FILENAME
/www/wwwroot/wwwapi/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711656055.8182
REQUEST_TIME
1711656055
Environment Variables
empty

ThinkPHP Constants

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