Merge branch 'james_bc' of git.kingsome.cn:server/game2006api into james_bc

This commit is contained in:
hujiabin 2022-12-05 15:52:39 +08:00
commit 0e8b768f9d
2 changed files with 48 additions and 0 deletions

View File

@ -287,4 +287,30 @@ class Market(object):
_common.NftView(),
]
},
{
'name': 'listSellNfts',
'desc': '获取上架出售的NFTs',
'group': 'Market',
'url': 'webapp/index.php?c=Market&a=listSellNfts',
'params': [
['account', '', '账号id'],
['token', '', 'token'],
['start', 0, '分页开始偏移'],
['page_size', 0, '分页大小'],
['order_method', 0, '排序方式 0:默认排序(当前指向1) 1:上架时间 2:价格 3:星级质量 4:等级 5:能量值 6:生命值 7:攻击力 8:防御力'],
['order_asc', 0, '排序方向, 0:从小到大 1:从大到小'],
['type', 0, '物品类型 1:英雄 2:武器 3:芯片'],
['job_filters', '', '职业过滤(用|分割)'],
['search_filters', '', '搜索过滤(用|分割)'],
['lv_filter', 0, '等级过滤'],
['price_filter', '', '价格过滤(用|分割)']
],
'response': [
_common.RspHead(),
['total', 0, '出售的列表总数量(当前过滤配置)'],
['start', 0, '有效的分页偏移'],
['page_size', 0, '有效的分页大小'],
['!nfts', [_common.NftDetail()], 'nft列表'],
]
},
]

View File

@ -534,4 +534,26 @@ class MarketController extends BaseController {
myself()->_rspOk();
}
public function listSellNfts()
{
$account = getReqVal('account', '');
$token = getReqVal('token', '');
$start = getReqVal('start', 0);
$page_size = getReqVal('page_size', 10);
$order_method = getReqVal('order_method', 0);
$order_asc = getReqVal('order_asc', 1);
$type = getReqVal('type', 1);
$job_filters = getReqVal('job_filters', '');
$job_filter_array = explode('|', $job_filters);
$search_filters = getReqVal('search_filters', '');
$search_filter_array = explode('|', $search_filters);
$lv_filter = getReqVal('lv_filter', 15);
$price_filter = getReqVal('price_filter', '');
$price_filter_array = explode('|', $price_filter);
echo $price_filter_array;
}
}