if($visitorinfo = Cache::get('studio_visit_by_'.$id)){
$this->assign('visitorinfo',$visitorinfo);
// dd($visitorinfo);
}
$studio = YhckoStudio::with(['getYhckoIndustry','getYhckoBackground'])->where('yhcko_studio_id',$id)->where('yhcko_studio_ischeck',1)->cache(true)->find();
// 计数统计
$total = new Total;
$total->getEveryPageTotal('studio',$id,0,$studio['yhcko_studio_memid']);
$memid = $studio->yhcko_studio_memid;
// 权威数据会员发布yh596的数据取8条最新排序数据页
$pagelist = Yhpage::with(['getTag'=>function($query){
$query->field('yh_tag_id,yh_tag_name');
}])->where('yh_page_memid',$memid)->where('yh_page_ischeck',1)->limit(8)->order('yh_page_created_at','desc')->select();
// 上级用户id
$parentid = YhMember::get($memid)['yh_mem_inviteid'];
if($pagelist->isEmpty()){
$pagelist = Yhpage::with(['getTag'=>function($query){