[0] HttpException in Index.php line 319

页面不存在

  1. // 材料文章
  2. public function cailiao($id = null)
  3. {
  4. if ($id) {
  5. $info = News::get_new(25, $id);
  6. if ($info == null) {
  7. throw new \think\exception\HttpException(404, '页面不存在');
  8. } else {
  9. $url = str_replace('/' . $id . '.html', "", $info->url);
  10. $hot_articles = News::recommended_articles($id);
  11. $same_articles = News::same_type_articles(25, $id);
  12. return $this->fetch('index/article_info', ['info' => $info, 'url' => $url, 'name' => '装修材料', 'title' => $info->title, 'content' => $info->newsdata->content, 'hot_articles' => $hot_articles, 'same_articles' => $same_articles]);
  13. }
  14. } else {
  15. $list = News::get_zxbk_list(25);
  16. $url = str_replace('/' . $id . '.html', "", $list[0]->url);

Call Stack

  1. in Index.php line 319
  2. at Index->cailiao('1116')
  3. at ReflectionMethod->invokeArgs(object(Index), ['1116']) in App.php line 343
  4. at App::invokeMethod([object(Index), 'cailiao'], []) in App.php line 611
  5. at App::module(['index', 'index', 'cailiao'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  6. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'cailiao'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  7. at App::run() in start.php line 19
  8. at require('/home/zslx0s3umzpsul...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

REDIRECT_REDIRECT_UNIQUE_ID
ZgVdRzoQM1kdO8yJ8pQ2jAAAAA0
REDIRECT_REDIRECT_PHPRC
/home/zslx0s3umzpsulmx40usd33u/others
REDIRECT_REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
ZgVdRzoQM1kdO8yJ8pQ2jAAAAA0
REDIRECT_PHPRC
/home/zslx0s3umzpsulmx40usd33u/others
REDIRECT_HANDLER
php-cgi
REDIRECT_STATUS
200
UNIQUE_ID
ZgVdRzoQM1kdO8yJ8pQ2jAAAAA0
PHPRC
/home/zslx0s3umzpsulmx40usd33u/others
HTTP_X_FORWARDED_FOR
3.229.124.236
HTTP_X_REAL_IP
211.149.140.180
HTTP_HOST
www.zyxbn.cn
HTTP_CONNECTION
close
HTTP_ACCEPT_ENCODING
gzip
HTTP_X_FORWARDED_PROTO
http
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
PATH
/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
<address>Apache Server at www.zyxbn.cn Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
www.zyxbn.cn
SERVER_ADDR
127.0.0.1
SERVER_PORT
80
REMOTE_ADDR
3.229.124.236
DOCUMENT_ROOT
/home/zslx0s3umzpsulmx40usd33u/wwwroot/
REQUEST_SCHEME
http
CONTEXT_PREFIX
/php-run-as-cgi
CONTEXT_DOCUMENT_ROOT
/usr/php7.2/bin
SERVER_ADMIN
webmaster@zslx0s3u
SCRIPT_FILENAME
/home/zslx0s3umzpsulmx40usd33u/wwwroot/index.php
REMOTE_PORT
34958
REDIRECT_URL
/index.php/xbn/cailiao/1116.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.0
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/xbn/cailiao/1116.html
SCRIPT_NAME
/index.php
PATH_INFO
/xbn/cailiao/1116.html
PATH_TRANSLATED
/home/zslx0s3umzpsulmx40usd33u/wwwroot/xbn/cailiao/1116.html
ORIG_PATH_INFO
/index.php/xbn/cailiao/1116.html
ORIG_SCRIPT_NAME
/php-run-as-cgi/php-cgi
ORIG_SCRIPT_FILENAME
/usr/php7.2/bin/php-cgi
ORIG_PATH_TRANSLATED
/home/zslx0s3umzpsulmx40usd33u/wwwroot/index.php/xbn/cailiao/1116.html
PHP_SELF
/index.php/xbn/cailiao/1116.html
REQUEST_TIME_FLOAT
1711627591.6239
REQUEST_TIME
1711627591
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/zslx0s3umzpsulmx40usd33u/wwwroot/application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711627591.6252
THINK_START_MEM
394864
EXT
.php
DS
/
THINK_PATH
/home/zslx0s3umzpsulmx40usd33u/wwwroot/thinkphp/
LIB_PATH
/home/zslx0s3umzpsulmx40usd33u/wwwroot/thinkphp/library/
CORE_PATH
/home/zslx0s3umzpsulmx40usd33u/wwwroot/thinkphp/library/think/
TRAIT_PATH
/home/zslx0s3umzpsulmx40usd33u/wwwroot/thinkphp/library/traits/
ROOT_PATH
/home/zslx0s3umzpsulmx40usd33u/wwwroot/
EXTEND_PATH
/home/zslx0s3umzpsulmx40usd33u/wwwroot/extend/
VENDOR_PATH
/home/zslx0s3umzpsulmx40usd33u/wwwroot/vendor/
RUNTIME_PATH
/home/zslx0s3umzpsulmx40usd33u/wwwroot/runtime/
LOG_PATH
/home/zslx0s3umzpsulmx40usd33u/wwwroot/runtime/log/
CACHE_PATH
/home/zslx0s3umzpsulmx40usd33u/wwwroot/runtime/cache/
TEMP_PATH
/home/zslx0s3umzpsulmx40usd33u/wwwroot/runtime/temp/
CONF_PATH
/home/zslx0s3umzpsulmx40usd33u/wwwroot/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false