[8] ErrorException in Designer.php line 46

未定义数组索引: id

  1. $this->assign('designList',$designList);
  2. return $this->fetch();
  3. }
  4. public function detail(){
  5. $input = input('');
  6. $design = Db::name('designs')->where(array('id'=>$input['id']))->find();
  7. $design['fengge'] = Db::name('links')->field('title')->where(array('link_id'=>['in',$design['styles']]))->select();
  8. $datalist = Db::name('example')->where(array('design_id'=>$design['id']))->limit(6)->select();
  9. $datalisttj = Db::name('example')->where(array('design_id'=>$design['id']))->order('rand()')->limit(2)->select();
  10. foreach ($datalist as $key => $value) {
  11. $datalist[$key]['style'] = Db::name('links')->where(array('link_id'=>$value['style_id']))->find()['title'];
  12. $datalist[$key]['huxing'] = Db::name('links')->where(array('link_id'=>$value['huxing_id']))->find()['title'];
  13. $datalist[$key]['area'] = Db::name('links')->where(array('link_id'=>$value['area_id']))->find()['title'];
  14. }
  15. $designlist = Db::name('designs')->where(array('substation_id'=>$this->citySubstation,'is_display'=>1,'tj'=>1))->limit(2)->select();
  16. $this->assign('design',$design);

Call Stack

  1. in Designer.php line 46
  2. at Error::appError(8, 'Undefined index: id', '/www/wwwroot/www.hfc...', 46, ['input' => ['id' => 'designer'], 'design' => ['fengge' => []]]) in Designer.php line 46
  3. at Designer->detail()
  4. at ReflectionMethod->invokeArgs(object(Designer), []) in App.php line 343
  5. at App::invokeMethod([object(Designer), 'detail'], []) in App.php line 595
  6. at App::module([null, 'designer', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => [null, 'designer', 'detail'], '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('/www/wwwroot/www.hfc...') in index.php line 20

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
HTTP_HOST
hfchuanhao.com
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
PATH_INFO
/designer/designer.html
REDIRECT_STATUS
200
SERVER_NAME
www.hfchuanhao.com
SERVER_PORT
80
SERVER_ADDR
172.21.23.230
REMOTE_PORT
58814
REMOTE_ADDR
3.95.233.107
SERVER_SOFTWARE
nginx/1.20.1
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/www.hfchuanhao.com
DOCUMENT_URI
/index.php
REQUEST_URI
/designer/designer.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/designer/designer.html
SCRIPT_FILENAME
/www/wwwroot/www.hfchuanhao.com/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1710843325.3791
REQUEST_TIME
1710843325
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.hfchuanhao.com/application/
EXTEND_PATH_CONF
/www/wwwroot/www.hfchuanhao.com/extend/My/Conf/
BIND_MODULE
index
THINK_VERSION
5.0.15
THINK_START_TIME
1710843325.3798
THINK_START_MEM
416480
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.hfchuanhao.com/thinkphp/
LIB_PATH
/www/wwwroot/www.hfchuanhao.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.hfchuanhao.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.hfchuanhao.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.hfchuanhao.com/
EXTEND_PATH
/www/wwwroot/www.hfchuanhao.com/extend/
VENDOR_PATH
/www/wwwroot/www.hfchuanhao.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.hfchuanhao.com/runtime/
LOG_PATH
/www/wwwroot/www.hfchuanhao.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.hfchuanhao.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.hfchuanhao.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.hfchuanhao.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false