This commit is contained in:
songliang 2023-07-11 10:47:40 +08:00
parent 703d40c9eb
commit 31fff493af
2 changed files with 22 additions and 0 deletions

View File

@ -208,6 +208,19 @@ 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'],
['!records' [_common.InappPurchaseRecord()], '购买记录'],
],
'response': [
_common.RspHead(),
]
},
{
'name': 'getPayMethods',
'desc': '获取支付方式',

View File

@ -1236,4 +1236,13 @@ class BlindBoxResult(object):
self.fields = [
['item_id', 0, 'item_id'],
['item_num', 0, 'item_num'],
]
class InappPurchaseRecord(object):
def __init__(self):
self.fields = [
['productId', '', '商品id'],
['gameOrderId', '', '游戏订单id'],
['orderId', '', 'google订单id'],
['status', 0, '订单状态'],
]