[0] Exception in Page.php line 140

栏目不存在

  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. }

Call Stack

  1. in Page.php line 140
  2. at Page->loadCategoryModel(null) in Page.php line 63
  3. at Page->initCate() in Page.php line 18
  4. at Page->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('Page', '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
DOCUMENT_ROOT
/usr/home/qxu1606370098/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_HOST
www.jlccs.org
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH
/bin:/usr/bin
PHPRC
/var/www/php56/hichina_ini/qxu1606370098
QUERY_STRING
REDIRECT_DOCUMENT_ROOT
/usr/home/qxu1606370098/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_ACCEPT_ENCODING
deflate, gzip
REDIRECT_HTTP_HOST
www.jlccs.org
REDIRECT_HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
REDIRECT_PATH_INFO
/Page/index/catid/
REDIRECT_PATH_TRANSLATED
redirect:/index.php/Page/index/catid//index/catid/
REDIRECT_QUERY_STRING
REDIRECT_REMOTE_ADDR
156.237.205.50
REDIRECT_REMOTE_PORT
20000
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/index/Page/index/catid/
REDIRECT_SCRIPT_FILENAME
/usr/home/qxu1606370098/htdocs/index
REDIRECT_SCRIPT_NAME
/index
REDIRECT_SERVER_ADDR
139.129.179.89
REDIRECT_SERVER_ADMIN
webmaster@qxu1606370098.my3w.com
REDIRECT_SERVER_NAME
www.jlccs.org
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
XcmTPgofMdgAAHf-ExwAAAAC
REDIRECT_URL
/index/Page/index/catid/
REMOTE_ADDR
156.237.205.50
REMOTE_PORT
20000
REQUEST_METHOD
GET
REQUEST_URI
/index/Page/index/catid/
SCRIPT_FILENAME
/usr/home/qxu1606370098/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
139.129.179.89
SERVER_ADMIN
webmaster@qxu1606370098.my3w.com
SERVER_NAME
www.jlccs.org
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
UNIQUE_ID
XcmTPgofMdgAAHf-ExwAAAAC
ORIG_PATH_INFO
/index/Page/index/catid/
ORIG_PATH_TRANSLATED
/usr/home/qxu1606370098/htdocs/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1573491518.7044
REQUEST_TIME
1573491518
Environment Variablesempty
ThinkPHP Constants
ROOT_PATH
/data/home/qxu1606370098/htdocs
APP_PATH
/data/home/qxu1606370098/htdocs/application
WEB_URL
http://www.jlccs.org/
APP_HOST
APP_ROOT_DIR
DOCUMENTY_ROOT_DIR
/usr/home/qxu1606370098/htdocs