| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace Heanup\App\Api\Controller;
- use Heanup\App\Api\Config\Site;
- use Heanup\App\Api\Controller;
- use Heanup\App\Api\Model\Dataoke;
- class Category extends Controller
- {
- protected function main()
- {
- // $id = $this->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));
- }
- }
|