[0] Exception in Lists.php line 248

栏目不存在

  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 Lists.php line 248
  2. at Lists->loadCategoryModel('41') in Lists.php line 176
  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 416
  7. at Container->invokeClass('app\index\controller...', []) in Container.php line 261
  8. at Container->make('app\index\controller...') in Container.php line 490
  9. at Container->__get('app\index\controller...') in App.php line 715
  10. at App->controller('Lists', 'controller', false, 'Error') in Module.php line 93
  11. at Module->exec() in Dispatch.php line 167
  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 176
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 121
  17. at Middleware->dispatch(object(Request)) in App.php line 435
  18. at App->run() in index.php line 33

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/weichen.zhulu76.com/index.php
QUERY_STRING s=/index/Lists/index/catid/41.html
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /index/Lists/index/catid/41.html
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/weichen.zhulu76.com
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.20.2
REMOTE_ADDR 3.85.63.190
REMOTE_PORT 35270
SERVER_ADDR 172.19.27.174
SERVER_PORT 80
SERVER_NAME weichenzhiyuan.com
REDIRECT_STATUS 200
PATH_INFO
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST www.weichenzhiyuan.com
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710856980.1943
REQUEST_TIME 1710856980
Environment Variablesempty
ThinkPHP Constants
ROOT_PATH /www/wwwroot/weichen.zhulu76.com
APP_PATH /www/wwwroot/weichen.zhulu76.com/application
WEB_URL http://www.weichenzhiyuan.com/
APP_HOST
APP_ROOT_DIR
DOCUMENTY_ROOT_DIR /www/wwwroot/weichen.zhulu76.com