[0] HttpException in Index.php line 79

页面不存在

  1. //栏目ID
  2. $cat = $this->request->param('catid/d', 0);
  3. if (empty($cat)) {
  4. $cat = $this->request->param('catdir/s', '');
  5. }
  6. $page = $this->request->param('page/d', 1);
  7. //获取栏目数据
  8. $category = getCategory($cat);
  9. if (empty($category)) {
  10. throw new \think\exception\HttpException(404, patch('PageNot'));
  11. }
  12. $catid = $category['id'];
  13. // 20211226 判断栏目的访问权限
  14. $readListAuth = isset(cache("Cms_Config")['read_list_auth']) ? cache("Cms_Config")['read_list_auth'] : 1;
  15. $reads = Db::name('category_read')->where(array("catid" => $catid, "is_admin" => 0, "action" => "add"))->field('roleid as id')->select();
  16. $roles = array_column($reads,'id');
  17. if($readListAuth){
  18. if ($roles) {
  19. if (in_array($this->auth->groupid,$roles)===false) {

Call Stack

  1. in Index.php line 79
  2. at Index->lists()
  3. at ReflectionMethod->invokeArgs() in Container.php line 422
  4. at Container->invokeReflectMethod() in Module.php line 131
  5. at Module->think\route\dispatch\{closure}()
  6. at call_user_func_array() in Middleware.php line 185
  7. at Middleware->think\{closure}()
  8. at call_user_func() in Middleware.php line 130
  9. at Middleware->dispatch() in Module.php line 136
  10. at Module->exec() in Dispatch.php line 169
  11. at Dispatch->run() in App.php line 432
  12. at App->think\{closure}()
  13. at call_user_func_array() in Middleware.php line 185
  14. at Middleware->think\{closure}()
  15. at call_user_func() in Middleware.php line 130
  16. at Middleware->dispatch() in App.php line 435
  17. at App->run() in index.php line 42

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
think_var zh-cn
think_site_id 1
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_REFERER http://www.yjdsj.com/index.php/sglc.html
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.yjdsj.com
PATH_INFO /sglc.html
REDIRECT_STATUS 200
SERVER_NAME yjdsj.com
SERVER_PORT 443
SERVER_ADDR 10.0.8.6
REMOTE_PORT 50666
REMOTE_ADDR 44.200.39.110
SERVER_SOFTWARE nginx/1.20.2
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/yjdsj_home/public
DOCUMENT_URI /index.php/sglc.html
REQUEST_URI /index.php/sglc.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
SCRIPT_FILENAME /www/wwwroot/yjdsj_home/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php/sglc.html
REQUEST_TIME_FLOAT 1711669351.4345
REQUEST_TIME 1711669351
Environment Variablesempty
ThinkPHP Constants
IF_PUBLIC true
ROOT_PATH /www/wwwroot/yjdsj_home/public/../
APP_PATH /www/wwwroot/yjdsj_home/public/../application/
DS /
ADDON_PATH /www/wwwroot/yjdsj_home/public/../addons/
ROOT_URL /
TEMPLATE_PATH /www/wwwroot/yjdsj_home/public/../templates/
FILTER_VALIDATE_BOOL 258
PINYIN_DEFAULT 4096
PINYIN_TONE 2
PINYIN_NO_TONE 4
PINYIN_ASCII_TONE 8
PINYIN_NAME 16
PINYIN_KEEP_NUMBER 32
PINYIN_KEEP_ENGLISH 64
PINYIN_UMLAUT_V 128
PINYIN_KEEP_PUNCTUATION 256