[0] Exception in Lists.php line 254

栏目不存在

  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 254
  2. at Lists->loadCategoryModel('3.html') in Lists.php line 176
  3. at Lists->initCate() in Lists.php line 15
  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...', true) in App.php line 723
  9. at App->controller('Lists', 'controller', false, 'Error') in Module.php line 94
  10. at Module->exec() in Dispatch.php line 168
  11. at Dispatch->run() in App.php line 432
  12. at App->think\{closure}(object(Request), object(Closure), null)
  13. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  14. at Middleware->think\{closure}(object(Request))
  15. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  16. at Middleware->dispatch(object(Request)) in App.php line 435
  17. at App->run() in index.php line 24

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
DOCUMENT_ROOT /usr/home/byu2822350001/htdocs
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT */*
HTTP_HOST lithy.net
HTTP_USER_AGENT claudebot
PATH /bin
PHPRC /var/www/php56/hichina_ini/byu2822350001
QUERY_STRING
REDIRECT_DOCUMENT_ROOT /usr/home/byu2822350001/htdocs
REDIRECT_GATEWAY_INTERFACE CGI/1.1
REDIRECT_HTTP_ACCEPT */*
REDIRECT_HTTP_HOST lithy.net
REDIRECT_HTTP_USER_AGENT claudebot
REDIRECT_PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_PATH_INFO /Lists/index/catid/3.html/article-wap-238250.html
REDIRECT_PATH_TRANSLATED redirect:/index.php/Lists/index/catid/3.html/article-wap-238250.html/index/catid/3.html/article-wap-238250.html
REDIRECT_QUERY_STRING
REDIRECT_REMOTE_ADDR 44.200.196.114
REDIRECT_REMOTE_PORT 35644
REDIRECT_REQUEST_METHOD GET
REDIRECT_REQUEST_URI /index/Lists/index/catid/3.html/article-wap-238250.html
REDIRECT_SCRIPT_FILENAME /usr/home/byu2822350001/htdocs/index
REDIRECT_SCRIPT_NAME /index
REDIRECT_SCRIPT_URI http://lithy.net/index/Lists/index/catid/3.html/article-wap-238250.html
REDIRECT_SCRIPT_URL /index/Lists/index/catid/3.html/article-wap-238250.html
REDIRECT_SERVER_ADDR 10.22.42.49
REDIRECT_SERVER_ADMIN webmaster@byu2822350001.my3w.com
REDIRECT_SERVER_NAME lithy.net
REDIRECT_SERVER_PORT 80
REDIRECT_SERVER_PROTOCOL HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE Apache
REDIRECT_STATUS 200
REDIRECT_TZ Asia/Shanghai
REDIRECT_UNIQUE_ID ZgXjLQoWKjEACHpnN-cAAAAA
REDIRECT_URL /index/Lists/index/catid/3.html/article-wap-238250.html
REMOTE_ADDR 44.200.196.114
REMOTE_PORT 35644
REQUEST_METHOD GET
REQUEST_URI /index/Lists/index/catid/3.html/article-wap-238250.html
SCRIPT_FILENAME /usr/home/byu2822350001/htdocs/index.php
SCRIPT_NAME /index.php
SCRIPT_URI http://lithy.net/index/Lists/index/catid/3.html/article-wap-238250.html
SCRIPT_URL /index/Lists/index/catid/3.html/article-wap-238250.html
SERVER_ADDR 10.22.42.49
SERVER_ADMIN webmaster@byu2822350001.my3w.com
SERVER_NAME lithy.net
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
TZ Asia/Shanghai
UNIQUE_ID ZgXjLQoWKjEACHpnN-cAAAAA
ORIG_PATH_INFO /index/Lists/index/catid/3.html/article-wap-238250.html
ORIG_PATH_TRANSLATED /usr/home/byu2822350001/htdocs/index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711661870.0128
REQUEST_TIME 1711661870
Environment Variablesempty
ThinkPHP Constants
ROOT_PATH /usr/home/byu2822350001/htdocs
APP_PATH /usr/home/byu2822350001/htdocs/application
WEB_URL http://lithy.net/
APP_HOST
APP_ROOT_DIR
DOCUMENTY_ROOT_DIR /usr/home/byu2822350001/htdocs