Ver Fonte

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

chendeben há 6 anos atrás
pai
commit
07500244f0
1 ficheiros alterados com 7 adições e 0 exclusões
  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);
+    }
+
 }