$interid = $request->param('interid'); //具体问题的id
cache::remember('get_interinfo_by_'.$interid,function()use($interid){
return $info = YhInterlocution::with(['getAnswer'=>function($query){
$query->where('yh_anwser_type',22)->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_interlocution_id',$interid)->where('yh_interlocution_ischeck',1)->find()->toArray();
});
$info = cache::get('get_interinfo_by_'.$interid);
// 计数统计
$total = new Total;
$total->getEveryPageTotal('inter',$interid,$info['yh_interlocution_tagid'],$info['yh_interlocution_memid']);
$intermemid = $info['yh_interlocution_memid'];