0) { $singlepage = Loader::model('Singlepage')->getRow($id); if (empty($singlepage)) { return exception('数据有误,请检查后再操作'); } $value['singlepage'] = $singlepage; $value['seo_title'] = $singlepage['seo_title']? : config('website_seo_title_us'); $value['seo_keyword'] = $singlepage['seo_keyword']? : config('website_seo_keyword'); $value['seo_description'] = $singlepage['seo_description']? : config('website_seo_description'); $this->assign($value); if ($view) { return $this->fetch($view); } else { return $this->fetch(); } } return exception('数据有误,请检查后再操作'); } }