$seo['description'] = config()['web']['site_description'];
$this->assign('seo', $seo);
return view($this->tpl);
}
//返回当前最顶层栏目
protected function get_top_category($cid = 0) {
$data = Db::name('category')->field('cid,pid,name,cname,icon,tpl_category,tpl_post,mid,sort,menu')->where(['status'=>1])->order("sort asc,cid asc")->select();
$cat = new cat(array('cid', 'pid', 'name', 'cname')); //初始化无限分类
$list = $cat->getPath($data, $cid); //获取分类数据树结构
return $list[0];
}
//子栏目所有CID
protected function get_child_id($pid = 0, $condition = '1=1') {
//查询分类信息
$data = Db::name('category')->field('cid,pid,name')->where($condition)->order("sort asc,cid asc")->select();
$cat = new cat(array('cid', 'pid', 'name', 'cname')); //初始化无限分类
$child_array = $cat->getTree($data, $pid);//获取分类数据树结构
if(is_array($child_array) && !empty($child_array)){
foreach($child_array as $vo){
USER | www |
HOME | /home/www |
HTTP_REFERER | http://tk.aidush.com/detail/content/id/content/id/394 |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | tk.aidush.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | tk.aidush.com |
SERVER_PORT | 443 |
SERVER_ADDR | 172.17.241.15 |
REMOTE_PORT | 38412 |
REMOTE_ADDR | 54.234.136.147 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /data/wwwroot/tk.aidush.com |
DOCUMENT_URI | /index.php |
REQUEST_URI | /detail/content/id/content/id/394 |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/detail/content/id/content/id/394 |
SCRIPT_FILENAME | /data/wwwroot/tk.aidush.com/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711676554.4278 |
REQUEST_TIME | 1711676554 |
BIND_MODULE | index |