From 89c2d705bb15e536d654c5dcdf5a489a91313f15 Mon Sep 17 00:00:00 2001 From: songliang Date: Fri, 2 Dec 2022 16:11:47 +0800 Subject: [PATCH 1/4] add web market doc listSellNfts --- doc/Market.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/doc/Market.py b/doc/Market.py index fc851c38..e127fd7c 100644 --- a/doc/Market.py +++ b/doc/Market.py @@ -287,4 +287,28 @@ class Market(object): _common.NftView(), ] }, + { + 'name': 'listSellNfts', + 'desc': '获取上架出售的NFTs', + 'group': 'Market', + 'url': 'webapp/index.php?c=Market&a=listSellNfts', + 'params': [ + ['start', 0, '分页开始偏移'], + ['page_size', 0, '分页大小'], + ['order_method', 0, '排序方式 0:默认排序(当前指向1) 1:上架时间 2:价格 3:星级质量 4:等级 5:能量值 6:生命值 7:攻击力 8:防御力'], + ['type', 0, '物品类型 1:英雄 2:武器 3:芯片'], + ['order_asc', 0, '排序方向, 0:从小到大 1:从大到小'], + ['!job_filters', '', '职业过滤'], + ['!search_filters' '', '搜索过滤'], + ['lv_filter', 0, '等级过滤'], + ['!price_filter', 0, '价格过滤'] + ], + 'response': [ + _common.RspHead(), + ['total', 0, '出售的列表总数量(当前过滤配置)'], + ['start', 0, '有效的分页偏移'], + ['page_size', 0, '有效的分页大小'], + ['!nfts', [_common.NftDetail()], 'nft列表'], + ] + }, ] From d1b380b2ee127d3bb819f10f6a80679ccf680426 Mon Sep 17 00:00:00 2001 From: songliang Date: Fri, 2 Dec 2022 19:40:05 +0800 Subject: [PATCH 2/4] ... --- doc/Market.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/Market.py b/doc/Market.py index e127fd7c..d98c390b 100644 --- a/doc/Market.py +++ b/doc/Market.py @@ -298,10 +298,10 @@ class Market(object): ['order_method', 0, '排序方式 0:默认排序(当前指向1) 1:上架时间 2:价格 3:星级质量 4:等级 5:能量值 6:生命值 7:攻击力 8:防御力'], ['type', 0, '物品类型 1:英雄 2:武器 3:芯片'], ['order_asc', 0, '排序方向, 0:从小到大 1:从大到小'], - ['!job_filters', '', '职业过滤'], - ['!search_filters' '', '搜索过滤'], + ['job_filters', '', '职业过滤'], + ['search_filters' '', '搜索过滤'], ['lv_filter', 0, '等级过滤'], - ['!price_filter', 0, '价格过滤'] + ['price_filter', '', '价格过滤'] ], 'response': [ _common.RspHead(), From a5caec45267e60f678b5e879b5e116aff22c2da3 Mon Sep 17 00:00:00 2001 From: songliang Date: Mon, 5 Dec 2022 10:04:02 +0800 Subject: [PATCH 3/4] ...market... --- doc/Market.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/Market.py b/doc/Market.py index d98c390b..26ee5220 100644 --- a/doc/Market.py +++ b/doc/Market.py @@ -293,15 +293,17 @@ class Market(object): '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:防御力'], ['type', 0, '物品类型 1:英雄 2:武器 3:芯片'], ['order_asc', 0, '排序方向, 0:从小到大 1:从大到小'], - ['job_filters', '', '职业过滤'], - ['search_filters' '', '搜索过滤'], + ['job_filters', '', '职业过滤(用|分割)'], + ['search_filters', '', '搜索过滤(用|分割)'], ['lv_filter', 0, '等级过滤'], - ['price_filter', '', '价格过滤'] + ['price_filter', '', '价格过滤(用|分割)'] ], 'response': [ _common.RspHead(), From afefc650b682a8c5aadd4ef4ada07236a6365bb6 Mon Sep 17 00:00:00 2001 From: songliang Date: Mon, 5 Dec 2022 12:05:00 +0800 Subject: [PATCH 4/4] ...market... --- doc/Market.py | 2 +- webapp/controller/MarketController.class.php | 22 ++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/doc/Market.py b/doc/Market.py index 26ee5220..700137ea 100644 --- a/doc/Market.py +++ b/doc/Market.py @@ -298,8 +298,8 @@ class Market(object): ['start', 0, '分页开始偏移'], ['page_size', 0, '分页大小'], ['order_method', 0, '排序方式 0:默认排序(当前指向1) 1:上架时间 2:价格 3:星级质量 4:等级 5:能量值 6:生命值 7:攻击力 8:防御力'], - ['type', 0, '物品类型 1:英雄 2:武器 3:芯片'], ['order_asc', 0, '排序方向, 0:从小到大 1:从大到小'], + ['type', 0, '物品类型 1:英雄 2:武器 3:芯片'], ['job_filters', '', '职业过滤(用|分割)'], ['search_filters', '', '搜索过滤(用|分割)'], ['lv_filter', 0, '等级过滤'], diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index 0dc4a71f..531669e9 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -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; + } + + + }