This commit is contained in:
aozhiwei 2023-07-31 10:49:51 +08:00
parent f7cf1d91c3
commit 2943e9c13d
2 changed files with 5 additions and 7 deletions

View File

@ -27,7 +27,7 @@ class Shop(object):
'url': 'webapp/index.php?c=Shop&a=buyGoods',
'params': [
_common.ReqHead(),
['goods_uuid', '', '商品唯一id'],
['goods_id', '', '商品唯一id'],
['goods_num', 0, '商品数量 如果是宝箱可分为1、10 其他情况的购买为1'],
],
'response': [
@ -44,7 +44,7 @@ class Shop(object):
'url': 'webapp/index.php?c=Shop&a=outappPurchase',
'params': [
_common.ReqHead(),
['goods_uuid', '', '商品唯一id'],
['goods_id', '', '商品唯一id'],
['goods_num', 0, '商品数量'],
],
'response': [
@ -60,7 +60,7 @@ class Shop(object):
'url': 'webapp/index.php?c=Shop&a=inappPurchase',
'params': [
_common.ReqHead(),
['goods_uuid', '', '商品唯一id'],
['goods_id', '', '商品唯一id'],
['goods_num', 0, '商品数量'],
['platform', 0, '平台 1android 2ios'],
],
@ -92,7 +92,7 @@ class Shop(object):
'url': 'webapp/index.php?c=Shop&a=boxPreview',
'params': [
_common.ReqHead(),
['goods_uuid', 0, '商品唯一id'],
['goods_id', 0, '商品唯一id'],
],
'response': [
_common.RspHead(),

View File

@ -382,7 +382,6 @@ class GoodsInfo(object):
def __init__(self):
self.fields = [
['id', 0, '商品唯一id'],
['item_id', 0, '商品id'],
['item_num', 0, '堆叠个数,例如:砖石数量'],
['max_amount', 0, '最高购买数量,单次购买'],
@ -399,14 +398,13 @@ class GoodsInfo(object):
['buy_gift', '', '购买次数赠品'],
['normal_gift', '', '普通狗赠品'],
['free_type', 0, '免费类型 0:不免费 1:日刷新'],
['free_num', 0, '免费次数'],
['pending', 0, '购买中...'],
]
class Goods(object):
def __init__(self):
self.fields = [
['goods_id', 0, '商品唯一id'],
['!goods_meta', GoodsInfo(), '商品元信息(配置表数据)'],
['bought_times', 0, '已购买次数'],
['free_num', 0, '免费次数'],