getQuery()->intval("id"); $id = $this->getQuery()->string("args_0"); $page = $this->getQuery()->string("args_1"); $request = [ 'r' => 'l', 'site' => 'classify', 'cid' => $id, ]; $bids = $this->getQuery()->string("bids"); $original_id = $this->getQuery()->string("original_id"); if ($bids) { $request['bids'] = $bids; } if ($original_id) { $request['original_id'] = $original_id; } if ($page) { $request['page'] = $page; } $url = Site::getData('site_url') . "/tao.php?" . http_build_query($request); echo Dataoke::parse(file_get_contents($url)); } protected function after() { $id = $this->getQuery()->string("args_0"); $page = $this->getQuery()->string("args_1"); if ($page) { $site_url = Site::getData('site_url') . "/category/" . $id . "/page_" . $page . ".html"; } else { $site_url = Site::getData('site_url') . "/category/" . $id . "/index.html"; } $this->addSitemap($site_url); } }