Explorar o código

Merge branch 'master' of https://git.97admin.com:433/chendeben/taoqu

chendeben %!s(int64=6) %!d(string=hai) anos
pai
achega
07500244f0
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      App/Api/Controller/Detail.php

+ 7 - 0
App/Api/Controller/Detail.php

@@ -18,4 +18,11 @@ class Detail extends Controller
         echo Dataoke::parse(file_get_contents($url));
     }
 
+    protected function after()
+    {
+        $id = $this->getQuery()->intval("id");
+        $site_url = Site::getData('site_url') . "/product/" . $id . ".html";
+        $this->addSitemap($site_url);
+    }
+
 }