65 lines
1.3 KiB
PHP
65 lines
1.3 KiB
PHP
<?php
|
|
|
|
require_once('mt/Market.php');
|
|
require_once('mt/Item.php');
|
|
require_once('mt/WhiteList.php');
|
|
require_once('mt/Currency.php');
|
|
|
|
use phpcommon\SqlHelper;
|
|
|
|
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()
|
|
{
|
|
}
|
|
|
|
public function prebuy()
|
|
{
|
|
}
|
|
|
|
public function sell()
|
|
{
|
|
}
|
|
|
|
public function detail()
|
|
{
|
|
}
|
|
|
|
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
|
|
)
|
|
));
|
|
}
|
|
|
|
}
|