diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index 898f8afe..7aa7ef5b 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -11,6 +11,21 @@ class MarketController extends BaseController { public function search() { + $type = getReqVal('type', 0); + if ($type == mt\Market::SYS_TYPE) { + $this->searchSys(); + } else { + $this->_rspData(array( + 'rows' => array(), + 'page' => array( + 'total' => 0, + 'count' => 0, + 'per_page' => 10, + 'current_page' => 1, + 'total_pages' => 0 + ) + )); + } } public function buy() @@ -29,4 +44,21 @@ class MarketController extends BaseController { { } + private function searchSys() + { + $page = getReqVal('page', 1); + $type = getReqVal('type', 0); + $sort = getReqVal('sort', ''); + $this->_rspData(array( + 'rows' => array(), + 'page' => array( + 'total' => 0, + 'count' => 0, + 'per_page' => 10, + 'current_page' => 1, + 'total_pages' => 0 + ) + )); + } + } diff --git a/webapp/mt/Currency.php b/webapp/mt/Currency.php new file mode 100644 index 00000000..bfd99c91 --- /dev/null +++ b/webapp/mt/Currency.php @@ -0,0 +1,27 @@ +