//获得当前图文所属的栏目信息
$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 | 0d130e48e94e3f25e81f2c806d355514 |
lang | zh-cn |
lang | cn |
USER | www |
HOME | /home/www |
HTTP_COOKIE | ssid=0d130e48e94e3f25e81f2c806d355514; lang=zh-cn |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.puyunkeji.com |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | puyunkeji.com |
SERVER_PORT | 443 |
SERVER_ADDR | 10.0.8.12 |
REMOTE_PORT | 52042 |
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/253/cat_id/favicon.ico |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index/Article/show/id/253/cat_id/favicon.ico |
SCRIPT_FILENAME | /www/wwwroot/puyunkeji.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1726913710.6455 |
REQUEST_TIME | 1726913710 |