[0] HttpException in Index.php line 377

404

  1. return $this->fetch("/a");
  2. }
  3. }
  4. public function product_info($id)
  5. {
  6. if ($id) {
  7. $info = DB("product")->where("id", $id)->find();
  8. // DB("product")->where("id",$id)->setInc('hits');
  9. if (!$info) {
  10. throw new \think\exception\HttpException(404, '404');
  11. }
  12. $info['Y'] = date("Y", $info['createtime']);
  13. $info['m'] = date("m", $info['createtime']);
  14. $info['d'] = date("d", $info['createtime']);
  15. $this->assign('info', $info);
  16. // 查询最新的4篇文章
  17. $remen = DB("product")->where("posid", '2')->order("createtime desc")->limit(6)->select();
  18. if ($remen) {
  19. for ($i = 0; $i < count($remen); $i++) {

Call Stack

  1. in Index.php line 377
  2. at Index->product_info('contact') in Index.php line 30
  3. at Index->ywlyjc()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), ['id' => 'contact', 'convert' => false]) in Module.php line 131
  6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  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 21

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 ezpoct.com
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.ezpoct.com
SERVER_PORT 443
SERVER_ADDR 172.21.114.177
REMOTE_PORT 41286
REMOTE_ADDR 34.207.180.141
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/www.ezpoct.com/public
DOCUMENT_URI /index.php
REQUEST_URI /ywlyjc/contact.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/ywlyjc/contact.html
SCRIPT_FILENAME /www/wwwroot/www.ezpoct.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711707668.5259
REQUEST_TIME 1711707668
Environment Variablesempty
ThinkPHP Constants
MAX_MENU_LENGTH 3
MAX_SUB_MENU_LENGTH 5
MODULE_NAME index
ACTION_NAME ywlyjc
DBNAME
ISPAGE 1