From d6c51a4fc2a3194dcea7cff55e1d2b04edeb209c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 28 Jul 2023 13:12:43 +0800 Subject: [PATCH] 1 --- doc/Shop.py | 35 ----------------------------------- doc/_common.py | 4 ++-- 2 files changed, 2 insertions(+), 37 deletions(-) diff --git a/doc/Shop.py b/doc/Shop.py index 65486e8b..aa96e194 100644 --- a/doc/Shop.py +++ b/doc/Shop.py @@ -53,22 +53,6 @@ class Shop(object): ['block_chain', _common.ShopTrans(), '链上购买订单信息'], ] }, - { - 'name': 'buyGoodsDirect', - 'desc': '直接购买(充值,gold)', - 'group': 'Shop', - 'url': 'webapp/index.php?c=Shop&a=buyGoodsDirect', - 'params': [ - ['account_id', '', '账号id'], - ['order_id', '', '订单id'], - ['goods_uuid', '', '商品唯一id'], - ['token_type', '', "选用币种"], - ['goods_num', 0, '商品数量'], - ], - 'response': [ - _common.RspHead(), - ] - }, { 'name': 'startGoodsDirect', 'desc': '发起一个 直接购买(充值,gold)', @@ -130,24 +114,6 @@ class Shop(object): ['status', 0, '订单状态 0:未支付 1:已支付 2:支付失败'], ] }, - { - 'name':'inappPurchaseDiamonds', - 'desc': '内购回调', - 'group': 'Shop', - 'url': 'webapp/index.php?c=Shop&a=inappPurchaseDiamonds', - 'params': [ - ['channel', '', '渠道 goole or apple'], - ['sign', '', '签名'], - ['records', '', '购买记录,以下字段是一个record的表示'], - ['productId', '', '商品id'], - ['gameOrderId', '', '游戏订单id'], - ['orderId', '', 'google订单id'], - ['status', 0, '订单状态'], - ], - 'response': [ - _common.RspHead(), - ] - }, { 'name': 'getPayMethods', 'desc': '获取支付方式', @@ -175,7 +141,6 @@ class Shop(object): _common.RspHead(), ['!items', [0], '宝箱物品列表'], ['free_num', 0, '免费次数'], - ['pending', 0, '购买中...'], ] } ] diff --git a/doc/_common.py b/doc/_common.py index 976212d1..f2b034ef 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -383,8 +383,8 @@ class GoodsInfo(object): def __init__(self): self.fields = [ ['id', 0, '商品唯一id'], - ['goods_id', 0, '商品id'], - ['goods_num', 0, '堆叠个数,例如:砖石数量'], + ['item_id', 0, '商品id'], + ['item_num', 0, '堆叠个数,例如:砖石数量'], ['max_amount', 0, '最高购买数量,单次购买'], ['shop_id', 0, '所属商店id'], ['shopstage', 0, '商店层级'],