[8] ErrorException in 6f6a786dc995047ef4d5d40200aa394d.php line 138

未定义数组索引: id

  1. </div>
  2. <div class="channel-sec clearfix">
  3. <!--left star-->
  4. <div class="host_side side-cate fl nomargin">
  5. <div class="cates" id="side-cates">
  6. <h2>科室列表</h2>
  7. <?php if(is_array($hospital['keshi_tree']) || $hospital['keshi_tree'] instanceof \think\Collection || $hospital['keshi_tree'] instanceof \think\Paginator): $i = 0; $__LIST__ = $hospital['keshi_tree'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$keshi1): $mod = ($i % 2 );++$i;?>
  8. <dl>
  9. <dt><b><a href="<?php echo addon_url('hospital/index/doctor',['id'=>$hospital['id'],'keshi'=>$keshi1['id']]); ?>"><?php echo $keshi1['name']; ?></a></b><a rel="moreA" href="javascript:;" class="<?php if($keshiobj['id'] == $keshi1['id']): ?>more up<?php else: ?>more<?php endif; ?>"></a></dt>
  10. <dd <?php if($keshiobj['id'] == $keshi1['id']): ?> style="display: block;"<?php endif; ?>>
  11. <?php if(is_array($keshi1['childlist']) || $keshi1['childlist'] instanceof \think\Collection || $keshi1['childlist'] instanceof \think\Paginator): $i = 0; $__LIST__ = $keshi1['childlist'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$keshi2): $mod = ($i % 2 );++$i;?>
  12. <a href="<?php echo addon_url('hospital/index/doctor',['id'=>$hospital['id'],'keshi'=>$keshi2['pid']]); ?>#keshi<?php echo $keshi2['id']; ?>" ><span><?php echo $keshi2['name']; ?></span></a>
  13. <?php endforeach; endif; else: echo "" ;endif; ?>
  14. </dd>
  15. </dl>
  16. <?php endforeach; endif; else: echo "" ;endif; ?>
  17. </div>
  18. </div>

Call Stack

  1. in 6f6a786dc995047ef4d5d40200aa394d.php line 138
  2. at Error::appError(8, 'Undefined index: id', '/www/wwwroot/huatuo1...', 138, ['cacheFile' => '/www/wwwroot/huatuo1...', 'vars' => ['config' => ['rewrite' => ['index/index' => '/hospital/$', 'index/zhuanjia' => '/hospital/zhuanjia/[...', 'index/details' => '/hospital/[:id]$', ...], 'domain' => ''], 'user' => null, 'site' => ['name' => '华佗医网', 'beian' => '湘ICP备19013665号...', 'cdnurl' => '//img.huatuo1.com/', ...], ...], 'config' => ['rewrite' => ['index/index' => '/hospital/$', 'index/zhuanjia' => '/hospital/zhuanjia/[...', 'index/details' => '/hospital/[:id]$', ...], 'domain' => ''], ...]) in 6f6a786dc995047ef4d5d40200aa394d.php line 138
  3. at include('/www/wwwroot/huatuo1...') in File.php line 53
  4. at File->read('/www/wwwroot/huatuo1...', ['config' => ['rewrite' => ['index/index' => '/hospital/$', 'index/zhuanjia' => '/hospital/zhuanjia/[...', 'index/details' => '/hospital/[:id]$', ...], 'domain' => ''], 'user' => null, 'site' => ['name' => '华佗医网', 'beian' => '湘ICP备19013665号...', 'cdnurl' => '//img.huatuo1.com/', ...], ...]) in Template.php line 188
  5. at Template->fetch('/www/wwwroot/huatuo1...', ['config' => ['rewrite' => ['index/index' => '/hospital/$', 'index/zhuanjia' => '/hospital/zhuanjia/[...', 'index/details' => '/hospital/[:id]$', ...], 'domain' => ''], 'user' => null, 'site' => ['name' => '华佗医网', 'beian' => '湘ICP备19013665号...', 'cdnurl' => '//img.huatuo1.com/', ...], ...], []) in Think.php line 86
  6. at Think->fetch('/www/wwwroot/huatuo1...', ['config' => ['rewrite' => ['index/index' => '/hospital/$', 'index/zhuanjia' => '/hospital/zhuanjia/[...', 'index/details' => '/hospital/[:id]$', ...], 'domain' => ''], 'user' => null, 'site' => ['name' => '华佗医网', 'beian' => '湘ICP备19013665号...', 'cdnurl' => '//img.huatuo1.com/', ...], ...], []) in View.php line 163
  7. at View->fetch() in Index.php line 197
  8. at Index->doctor()
  9. at call_user_func_array([object(Index), 'doctor'], []) in Route.php line 76
  10. at Route->execute('hospital', 'index', 'doctor')
  11. at ReflectionMethod->invokeArgs(object(Route), ['hospital', 'index', 'doctor']) in App.php line 343
  12. at App::invokeMethod(['\think\addons\Route', 'execute'], ['keshi' => '15', 'id' => '13', 'addon' => 'hospital', ...]) in App.php line 470
  13. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'hospital', 'controller' => 'index', 'action' => 'doctor']], ['app_host' => '', 'app_debug' => '1', 'app_trace' => '', ...]) in App.php line 139
  14. at App::run() in start.php line 19
  15. at require('/www/wwwroot/huatuo1...') in index.php line 24

Environment Variables

GET Data

keshi
15
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_HOST
www.huatuo1.com
PATH_INFO
/hospital/13/doctor.html
REDIRECT_STATUS
200
SERVER_NAME
www.huatuo1.com
SERVER_PORT
443
SERVER_ADDR
172.17.0.14
REMOTE_PORT
56576
REMOTE_ADDR
54.205.116.187
SERVER_SOFTWARE
nginx/1.19.7
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/2.0
DOCUMENT_ROOT
/www/wwwroot/huatuo1.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/hospital/13/doctor.html?keshi=15
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/hospital/13/doctor.html&keshi=15
SCRIPT_FILENAME
/www/wwwroot/huatuo1.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711641786.6715
REQUEST_TIME
1711641786
Environment Variables
empty

ThinkPHP Constants

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