}
$juti_id = $request->param('id'); //具体贴吧的id
cache::tag('postbar')->remember('get_postbarinfo_by_'.$juti_id,function()use($juti_id){
return $info = YhPostbar::with(['getAnswer'=>function($query){
$query->where('yh_anwser_type',20)->order('yh_anwser_created_at','desc');
},'getTag'=>function($query){
$query->field('yh_tag_id,yh_tag_name');
},'getLogo'=>function($query){
$query->field('yh_data_id,yh_data_short,yh_data_logo,yh_data_title');
},'getImg'])->where('yh_postbar_id',$juti_id)->where('yh_postbar_ischeck',1)->find()->toArray();
},config('cachetag.tag.postbar.timeout'));
$info = cache::get('get_postbarinfo_by_'.$juti_id);
$cate = YhCategory::where([
'yh_cate_id' => $info['yh_postbar_cateid']
])->find();
$this->assign('cate',$cate);
// 计数统计
$total = new Total;
$total->getEveryPageTotal('postbar',$juti_id,$info['yh_postbar_tagid'],$info['yh_postbar_memid']);