From 32b25aa9961180a1e109404742750302b0b498c3 Mon Sep 17 00:00:00 2001 From: songliang Date: Wed, 28 Jun 2023 17:22:52 +0800 Subject: [PATCH] ... --- doc/Shop.py | 15 +++++++++++++++ doc/_common.py | 8 ++++++++ 2 files changed, 23 insertions(+) diff --git a/doc/Shop.py b/doc/Shop.py index 76974439..e7cc26bc 100644 --- a/doc/Shop.py +++ b/doc/Shop.py @@ -217,5 +217,20 @@ class Shop(object): _common.RspHead(), ['block_chain', _common.ShopTrans(), '链上购买订单信息'] ] + }, + { + 'name': 'buyBlindBox', + 'desc': '购买盲盒(宝箱)', + 'group': 'Shop', + 'url': 'webapp/index.php?c=Shop&a=buyBlindBox', + 'params': [ + _common.ReqHead(), + ['id', 0, '商品唯一id,参见shopGoods表'], + ['num', 0, '购买数量 1:单个 10:十连抽'], + ], + 'response': [ + _common.RspHead(), + ['!result', [_common.BlindBoxResult()], '盲盒结果列表'], + ] } ] diff --git a/doc/_common.py b/doc/_common.py index a11cba34..6b031de1 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -1218,4 +1218,12 @@ class ShopTrans(object): ['!params', [''], 'params'], ['item_id', 0, 'item_id'], ['item_num', 0, 'item_num'], + ] + +class BlindBoxResult(object): + + def __init__(self): + self.fields = [ + ['item_id', 0, 'item_id'], + ['num', 0, 'num'], ] \ No newline at end of file