$imgs = YhImagesInter::field('yh_images_inter_link as link,yh_images_inter_description as description')->where('yh_images_inter_infoid',$imgInfo['yh_images_info_id'])->select();
break;
case 'postbar':
$imgs = YhImagesPostbar::field('yh_images_postbar_link as link,yh_images_postbar_description as description')->where('yh_images_postbar_infoid',$imgInfo['yh_images_info_id'])->select();
break;
case 'comment':
$imgs = YhImagesComment::field('yh_images_comment_link as link,yh_images_comment_description as description')->where('yh_images_comment_infoid',$imgInfo['yh_images_info_id'])->select();
break;
}
$this->assign('imgs',$imgs);
// 获取图片页id内容
$this->assign('imgInfo',$imgInfo);
$data_id = $imgInfo['yh_images_info_dataid']; //具体数据仓库的id
$this->assign('data_id',$data_id);
// 推荐列表
$datainfo = YhData::with(['getRecommend'=>function($query){
$query->with('getImgInfo')->where('yh598_recommend_ischeck',1)->limit(6);
},'getTag'])->where('yh_data_id',$data_id)->where('ischeck',1)->find();