['is_enable'=>1, 'id'=>$id], 'field' => 'id,title,content,is_header,is_footer,is_full_screen,access_count', 'm' => 0, 'n' => 1, ]; $data = CustomViewService::CustomViewList($params); if(!empty($data['data'][0])) { // 访问统计 CustomViewService::CustomViewAccessCountInc(['id'=>$id]); // 浏览器标题 $this->assign('home_seo_site_title', SeoService::BrowserSeoTitle($data['data'][0]['title'])); $this->assign('data', $data['data'][0]); $this->assign('is_header', $data['data'][0]['is_header']); $this->assign('is_footer', $data['data'][0]['is_footer']); return $this->fetch(); } else { $this->assign('msg', '页面不存在或已删除'); return $this->fetch('public/tips_error'); } } } ?>