示例#1
0
文件: Route.php 项目: gudwin/extasy
 public function test($request)
 {
     $this->request = $request;
     $url = $this->getCurrentUrl();
     try {
         $this->sitemapInfo = \Sitemap_Sample::getByUrl($url);
     } catch (\SiteMapException $e) {
         $this->sitemapInfo = $this->searchInHistory($url);
     }
     if (!empty($this->sitemapInfo)) {
         self::$currentUrlInfo = $this->sitemapInfo;
     }
     return !empty($this->sitemapInfo);
 }