This commit is contained in:
aozhiwei 2024-08-07 09:49:30 +08:00
parent 8d821f498d
commit 36a59e335f
2 changed files with 7 additions and 2 deletions

View File

@ -10,7 +10,7 @@ class AAMarket(object):
'desc': '获取上架出售的NFTs(瀑布流式api) jwtheader为可选参数',
'group': '!AAMarket',
'url': 'https://market-test.kingsome.cn/api/market/product/list/:net_id',
'headers': _common.JwtHeader,
'headers': _common.MaybeJwtHeader,
'is_json_params': True,
'request_params': [
[':net_id', 0, '链id'],
@ -295,13 +295,14 @@ class AAMarket(object):
'name': '/api/user/:account_address',
'desc': '获取用户信息',
'group': '!AAMarket',
'headers': _common.MaybeJwtHeader,
'url': 'https://market-test.kingsome.cn/api/user/:account_address',
'params': [
],
'response': [
_common.RspHead(),
['nickname', '', '昵称'],
['email', '', 'email'],
['email', '', 'email(因为隐私问题jwt关联的地址和:account_address相等时才返回email)'],
['contribution_point', 0, '贡献点'],
['gold', '', '金币数'],
['diamond', '', '钻石数'],

View File

@ -26,6 +26,10 @@ JwtHeader = [
'Authorization Bearer {JwtToken}'
]
MaybeJwtHeader = [
'Authorization Bearer {JwtToken} 可选参数'
]
LoginRequired = 'login required'
class Union(object):