[0]HttpExceptioninEmptyController.php line 109

  1. return $this->fetch($template);
  2. }
  3. }
  4. public function info(){
  5. $id = intval(input('id'));
  6. Db::name(DBNAME)->where('id',$id)->setInc('hits');
  7. $info = Db::name(DBNAME)->where(['id'=>$id,'status'=>1])->find();
  8. if(!$info)
  9. throw new \think\exception\HttpException(404);
  10. $info['pic'] = isset($info['pic'])?$info['pic']:config('view_replace_str.__HOME__'). "/images/sample-images/blog-post".mt_rand(1,3). ".jpg";
  11. $info['title_thumb'] = isset($info['thumb']) && $info['thumb']?$info['thumb']:config('view_replace_str.__HOME__').'/images/sample-images/blog-post'.mt_rand(1,3).'.jpg';
  12. $info['title_style'] = isset($info['title_style'])? $info['title_style']:'';
  13. if(DBNAME=='picture'){
  14. $pics = explode(':::',$info['pics']);
  15. foreach ($pics as $k=>$v){
  16. $info['pics'][$k] = explode('|',$v);
  17. }
  18. }

Call Stack

  1. inEmptyController.php line 109
  2. atEmptyController->info()
  3. atReflectionMethod->invokeArgs(object(EmptyController), []) inContainer.php line 395
  4. atContainer->invokeReflectMethod(object(EmptyController),object(ReflectionMethod), ['catId' => '7', 'id' => 'index', 'convert' =>false]) inModule.php line 132
  5. atModule->think\route\dispatch\{closure}(object(Request),object(Closure),null)
  6. at call_user_func_array(object(Closure), [object(Request),object(Closure),null]) inMiddleware.php line 185
  7. atMiddleware->think\{closure}(object(Request))
  8. at call_user_func(object(Closure),object(Request)) inMiddleware.php line 130
  9. atMiddleware->dispatch(object(Request), 'controller') inModule.php line 137
  10. atModule->exec() inDispatch.php line 168
  11. atDispatch->run() inApp.php line 432
  12. atApp->think\{closure}(object(Request),object(Closure),null)
  13. at call_user_func_array(object(Closure), [object(Request),object(Closure),null]) inMiddleware.php line 185
  14. atMiddleware->think\{closure}(object(Request))
  15. at call_user_func(object(Closure),object(Request)) inMiddleware.php line 130
  16. atMiddleware->dispatch(object(Request)) inApp.php line 435
  17. atApp->run() inindex.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_CACHE_CONTROL public, max-age=86400
HTTP_HOST www.scfzw.net
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_ACCEPT */*
HTTP_CONNECTION keep-alive
HTTP_ACCEPT_ENCODING gzip, br
PHP_ADMIN_VALUE open_basedir=/data/wwwroot/www.scfz.org/public/:/tmp/:/proc/:/data/wwwroot
REDIRECT_STATUS 200
SERVER_NAME scfzw.net
SERVER_PORT 80
SERVER_ADDR 192.168.0.34
REMOTE_PORT 60338
REMOTE_ADDR 172.104.58.121
SERVER_SOFTWARE nginx/1.16.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /data/wwwroot/www.scfz.org/public
DOCUMENT_URI /index.php
REQUEST_URI /jiansuo/7/index.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//jiansuo/7/index.html
SCRIPT_FILENAME /data/wwwroot/www.scfz.org/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1729530129.9506
REQUEST_TIME 1729530129
Environment Variablesempty
ThinkPHP Constants
MAX_MENU_LENGTH 3
MAX_SUB_MENU_LENGTH 5
MODULE_NAME jiansuo
ACTION_NAME info
DBNAME article
ISPAGE 0