This commit is contained in:
aozhiwei 2022-02-21 19:20:02 +08:00
parent d89ae88620
commit 2bb00c853c

View File

@ -6,6 +6,33 @@ class Market(object):
def __init__(self):
self.apis = [
{
'name': 'getNonce',
'desc': '获取登录认证nonce',
'group': 'Market',
'url': 'webapp/index.php?c=Market&a=getNonce',
'params': [
['account', '', '钱包账号'],
],
'response': [
_common.RspHead(),
['nonce', '', 'nonce'],
]
},
{
'name': 'auth',
'desc': '认证',
'group': 'Market',
'url': 'webapp/index.php?c=Market&a=auth',
'params': [
['account', '', '钱包账号'],
['data', '', '待签名的原始数据(注意给的是完整的待签名数据),格式{name:"Auth", version: "1", nonce:"", signer:""}'],
['signature', '', '签名'],
],
'response': [
_common.RspHead(),
]
},
{
'name': 'getPreSaleInfo',
'desc': '获取预售信息',