$cateInfo = (new Category)->getCateInfo($info['category_id']);
}
Db::name('archives')->where(['id'=>$info['id']])->inc('views')->update();
$this->view->assign('Cate', $cateInfo);
$this->view->assign('Info', $info);
// seo 模型固定的默认字段 keywords description
$seo_title = empty($info['seotitle'])?$info['title']:$info['seotitle'];
$seo_title = str_replace(['$title','$name','$site'], [$seo_title,$cateInfo['title'],site("title")], site('content_format'));
$this->view->assign('seo_title', $seo_title);
$this->view->assign('seo_keywords', isset($info['keywords'])?$info['keywords']:$cateInfo['seo_keywords']);
$this->view->assign('seo_desc', isset($info['description'])?$info['description']:$cateInfo['seo_desc']);
$template = explode(".", $info['show_tpl'], 2);
return $this->view->fetch('show/'.$template[0]);
}
/**
HKCMSSESSID | 55b9ccc100314aad2a827d71f5850046 |
index_hkcms_lang | zh-cn |
old_index_hkcms_lang | zh-cn |
USER | www |
HOME | /home/www |
HTTP_COOKIE | HKCMSSESSID=55b9ccc100314aad2a827d71f5850046; index_hkcms_lang=zh-cn; old_index_hkcms_lang=zh-cn |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.huayuan.com.cn |
HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | hyjt.z-product.com |
SERVER_PORT | 443 |
SERVER_ADDR | 192.168.0.9 |
REMOTE_PORT | 58900 |
REMOTE_ADDR | 23.90.23.202 |
SERVER_SOFTWARE | nginx/1.24.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/hyjt/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /news/47.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/news/47.html |
SCRIPT_FILENAME | /www/wwwroot/hyjt/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1747630616.7841 |
REQUEST_TIME | 1747630616 |