//获得当前图文所属的栏目信息
$articleCate= DB::name('DataArticleCate')->where(["id" => $catId])->find(); //分类信息
$this->assign('catInfo',$articleCate); //当前分类信息
if(empty($articleCate['link_name'])){
$articleCate['link_name'] = "List";
}
$this->assign('linkName',$articleCate['link_name']); //当前分类的静态名称
$templateInfo = DB::name('DataTemplate')->where(["id" => $articleCate['template_id']])->find(); //分类模板信息
$contentTemplateInfo = DB::name('DataTemplate')->where(["id" => $articleCate['content_template_id']])->find(); //内容模板信息
if(!$contentTemplateInfo['table_name']){
return $this->fetch("error_page");
exit;
}
//获得当前图文信息
$article = Db::name($contentTemplateInfo['table_name'])->where('id',$id)->find();
ssid | ed6f9d946f20b6f674b1025669017b5d |
lang | zh-cn |
lang | cn |
keyword | Resource |
USER | www |
HOME | /home/www |
HTTP_COOKIE | ssid=ed6f9d946f20b6f674b1025669017b5d; lang=zh-cn |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.puyunkeji.com |
HTTP_USER_AGENT | Googlebot-Image/1.0 |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | puyunkeji.com |
SERVER_PORT | 443 |
SERVER_ADDR | 10.0.8.12 |
REMOTE_PORT | 57434 |
REMOTE_ADDR | 170.130.200.186 |
SERVER_SOFTWARE | nginx/1.20.2 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/puyunkeji.com |
DOCUMENT_URI | /index.php |
REQUEST_URI | /index/Article/show/id/90/cat_id/favicon.ico |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index/Article/show/id/90/cat_id/favicon.ico |
SCRIPT_FILENAME | /www/wwwroot/puyunkeji.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1717938239.5193 |
REQUEST_TIME | 1717938239 |