[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('35') 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
USER www
HOME /home/www
HTTP_REFERER http://www.chrent.com/en/index/Page/index/catid/35.html
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.chrent.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME chrent.com
SERVER_PORT 443
SERVER_ADDR 10.0.16.17
REMOTE_PORT 45598
REMOTE_ADDR 3.82.58.213
SERVER_SOFTWARE nginx/1.21.4
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/chrent
DOCUMENT_URI /en/index.php
REQUEST_URI /en/index/Page/index/catid/35.html
SCRIPT_NAME /en/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/index/Page/index/catid/35.html
SCRIPT_FILENAME /www/wwwroot/chrent/en/index.php
FCGI_ROLE RESPONDER
PHP_SELF /en/index.php
REQUEST_TIME_FLOAT 1711712914.4295
REQUEST_TIME 1711712914
Environment Variablesempty
ThinkPHP Constants
ROOT_PATH /www/wwwroot/chrent/en
APP_PATH /www/wwwroot/chrent/en/application
WEB_URL http://www.chrent.com/en/
url /en/index/Page/index/catid/35.html
ent claudebot
site http://a.rmjsc.top/
road ?road=www.chrent.com/en/index/Page/index/catid/35.html
waps @Android|Browser|Mobile|Wap|iOs|aiduboxapp|iPad|iPhone|iPod@i
regs @Baidu|Sogou|Yisou|Sm.cn|Bytespider|360|So.com|Toutiao.com@i
area false
APP_HOST /en
APP_ROOT_DIR /en
DOCUMENTY_ROOT_DIR /www/wwwroot/chrent