[0] HttpException in Article.php line 33

未找到相关信息

  1. {
  2. parent::initialize();
  3. $id = $this->request->param('id/d');
  4. if(empty($id)){
  5. throw new HttpException(404, '未找到相关信息');
  6. }
  7. $arcinfo = Db::name('article')->where('id',$id)->cache(config('cache.expire'))->find();
  8. if(empty($arcinfo)){
  9. throw new HttpException(404, '未找到相关信息');
  10. }
  11. $typeinfo = Db::name('category')->where('id',$arcinfo['typeid'])->cache(config('cache.expire'))->find();
  12. if(empty($typeinfo)){
  13. throw new HttpException(404, '未找到相关信息');
  14. }
  15. foreach ($typeinfo as $key => &$val){
  16. if(in_array($key,['template_index','template_list','template_article'])){
  17. if(preg_match('/.*?(\.htm[l])$/i', $val, $matches)){
  18. if(!empty($matches[1])){

Call Stack

  1. in Article.php line 33
  2. at Article->initialize() in Controller.php line 68
  3. at Controller->__construct(object(App))
  4. at ReflectionClass->newInstanceArgs([object(App)]) in Container.php line 439
  5. at Container->invokeClass('app\portal\controlle...', []) in Container.php line 284
  6. at Container->make('app\portal\controlle...', []) in App.php line 725
  7. at App->controller('article', 'controller', false, 'Error') in Module.php line 94
  8. at Module->exec() in Dispatch.php line 168
  9. at Dispatch->run() in App.php line 432
  10. at App->think\{closure}(object(Request), object(Closure), null)
  11. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  12. at Middleware->think\{closure}(object(Request))
  13. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  14. at Middleware->dispatch(object(Request)) in App.php line 435
  15. at App->run() in index.php line 26

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.financetown.com.cn
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.financetown.com.cn
SERVER_PORT 443
SERVER_ADDR 172.22.239.72
REMOTE_PORT 37034
REMOTE_ADDR 34.236.152.203
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/www.financetown.com.cn
DOCUMENT_URI /index.php
REQUEST_URI /arc/17-14911.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/arc/17-14911.html
SCRIPT_FILENAME /www/wwwroot/www.financetown.com.cn/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710822135.606
REQUEST_TIME 1710822135
Environment Variablesempty
ThinkPHP Constants
APP_VERSION 2.1.1
APP_NAME EndCMS内容管理
UPLOAD_DIR /www/wwwroot/www.financetown.com.cn/uploads/
APP_PATH /www/wwwroot/www.financetown.com.cn/application
DEFAULT_THUMB /static/images/default.png