[0] Exception in Lists.php line 361

栏目不存在

  1. * @return Ambigous <\think\static, NULL, void, multitype:, PDOStatement, string, \think\Model, unknown, \PDOStatement, boolean, multitype:multitype: >
  2. */
  3. private function loadCategoryModel($catid = null) {
  4. try {
  5. $model = null;
  6. if (isset ( $this->allCategorys [$catid] )) {
  7. $model = $this->allCategorys [$catid];
  8. }
  9. if ($catid === null || $model == null) {
  10. throw new Exception ( '栏目不存在' );
  11. }
  12. return $model;
  13. } catch ( Exception $e ) {
  14. throw $e;
  15. }
  16. }
  17. public function loadlist()
  18. {
  19. $num = input('num');

Call Stack

  1. in Lists.php line 361
  2. at Lists->loadCategoryModel(null) in Lists.php line 283
  3. at Lists->initCate() in Lists.php line 16
  4. at Lists->initialize() in Controller.php line 68
  5. at Controller->__construct(object(App))
  6. at ReflectionClass->newInstanceArgs([object(App)]) in Container.php line 439
  7. at Container->invokeClass('app\index\controller...', []) in Container.php line 284
  8. at Container->make('app\index\controller...') in Container.php line 516
  9. at Container->__get('app\index\controller...') in App.php line 725
  10. at App->controller('Lists', 'controller', false, 'Error') in Module.php line 94
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 435
  18. at App->run() in index.php line 25

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/www/wwwroot/tuomics.zhulu76.com/index.php
QUERY_STRING
s=/index/Lists/index/catid/
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index/Lists/index/catid/
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/www/wwwroot/tuomics.zhulu76.com
SERVER_PROTOCOL
HTTP/1.1
REQUEST_SCHEME
http
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.14.2
REMOTE_ADDR
103.239.96.47
REMOTE_PORT
20000
SERVER_ADDR
172.19.103.185
SERVER_PORT
80
SERVER_NAME
tuomics.zhulu76.com
REDIRECT_STATUS
200
PATH_INFO
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.tomi-em.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1585839428.9125
REQUEST_TIME
1585839428
Environment Variablesempty
ThinkPHP Constants
ROOT_PATH
/www/wwwroot/tuomics.zhulu76.com
APP_PATH
/www/wwwroot/tuomics.zhulu76.com/application
WEB_URL
http://www.tomi-em.com/
APP_HOST
APP_ROOT_DIR
DOCUMENTY_ROOT_DIR
/www/wwwroot/tuomics.zhulu76.com