service = new HomeService(); } /** * Function Description:网站首页 * Function Name: indexAction * * @return string|void * * @author 倪宗锋 */ public function indexAction() { $isCache = BrowserCache::checkCache();//校验浏览器缓存是否过时 if ($isCache['flag'] == false) { return ''; } $getInfo = $this->service->getHomeInfo(); if ($getInfo['flag'] == false) { return $this->viewError($getInfo['msg']); } else { $info = $getInfo['data']; } $_SESSION['test'] = true; $this->setViewParam('info', $info); return $this->viewModel('index'); } /** * Function Description:调试方法 * Function Name: zzAction * * @return string * * @author 倪宗锋 */ public function zzAction() { return Util::returnJsSu('zz调试'); } }