use think\Db;
class ContentModel extends Model
{
protected $name='content';
public function getContentByCon($con)
{
$diymodelmodel = new DiymodelModel();
$tabname = $diymodelmodel->where(['id'=>$con['mid']])->value('tabname');
$info = db('diy_'.$tabname)->where(['conid'=>$con['vid']])->find();
if ($info) {
$con = array_merge($con, $info);
}
$con = $this->getContentStr($con);
return $con;
}