//获得栏目模板信息
$articleCate= DB::name('DataArticleCate')->where(["id" => $id])->find(); //分类信息
$this->assign('catInfo',$articleCate); //当前分类信息
if(empty($articleCate['link_name'])){
$articleCate['link_name'] = "List";
}
$this->assign('linkName',$articleCate['link_name']); //当前分类的静态名称
if($articleCate['parent_id'] == 0 && empty($articleCate['content_template_id'])){
//如果是顶级栏目
$catIds = Db::name('DataArticleCate')->where(['parent_id'=>$id])->column('id');
if(empty($catIds[0])){
dump("此分未设置内容模板或下级分类!");die();
}
$childCate= DB::name('DataArticleCate')->where(["id" => $catIds[0]])->find(); //第一个分类信息
//获得指定栏目所在的所有同级栏目
$this->assign('catTreeList',$GLOBALS['function']->getCatList($catIds[0]));
_wtsexp | 1735829915 |
_wtscpk | 63ee9c3ca9 |
_wtsuid | 82d6ba73-801c-473a-b294-295f962635a1 |
_wtspurl | /index/Article/show/cat_id/28/id/21 |
ssid | a075e6decaaf782655eba893945da302 |
lang | zh-cn |
lang | cn |
USER | jinlin |
HOME | /home/wwwroot/jinlin |
SCRIPT_NAME | /index.php |
REQUEST_URI | /site-List-20.html |
QUERY_STRING | s=/site-List-20.html |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=/site-List-20.html |
REDIRECT_URL | /site-List-20.html |
REMOTE_PORT | 52130 |
SCRIPT_FILENAME | /home/wwwroot/jinlin/wwwroot/index.php |
SERVER_ADMIN | [no address given] |
CONTEXT_DOCUMENT_ROOT | /home/wwwroot/jinlin/wwwroot |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /home/wwwroot/jinlin/wwwroot |
REMOTE_ADDR | 107.158.249.130 |
SERVER_PORT | 80 |
SERVER_ADDR | 127.0.0.1 |
SERVER_NAME | www.ling-jiang.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
HTTP_COOKIE | _wtsexp=1735829915; _wtscpk=63ee9c3ca9; _wtsuid=82d6ba73-801c-473a-b294-295f962635a1; _wtspurl=/index/Article/show/cat_id/28/id/21; ssid=a075e6decaaf782655eba893945da302; lang=zh-cn |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
HTTP_CONNECTION | close |
HTTP_HOST | www.ling-jiang.com |
HTTP_X_REAL_IP | 107.158.249.130 |
HTTP_X_FORWARDED_FOR | 107.158.249.130 |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1736935477.1392 |
REQUEST_TIME | 1736935477 |