This commit is contained in:
aozhiwei 2024-08-16 11:44:51 +08:00
parent 7827e332f7
commit 850364c64d
2 changed files with 44 additions and 1 deletions

View File

@ -372,6 +372,36 @@ class AAMarket(object):
], '任务列表'],
]
},
{
'method': 'GET',
'name': '/api/activity/cec/contribution/:account_address',
'desc': 'cec贡献点活动',
'group': '!AAMarket',
'url': '/api/activity/cec/contribution/:account_address',
'params': [
],
'response': [
_common.RspHead(),
['info', _common.CecContributionActivity(), 'cec贡献点活动'],
]
},
{
'method': 'GET',
'name': '/api/activity/contribution/history/:account_address',
'desc': '贡献点活动-获得历史',
'group': '!AAMarket',
'url': '/api/activity/contribution/history/:account_address',
'params': [
],
'response': [
_common.RspHead(),
['!rows', [
['type', 0, '1:质押 2:游戏内消费金币'],
['give_time', 0, '获得时间'],
['contribution_point', 0, '贡献点'],
], '数据'],
]
},
{
'method': 'GET',
'name': '/api/chain/txhash/:net_id/:txhash',
@ -431,6 +461,7 @@ class AAMarket(object):
],
'response': [
_common.RspHead(),
['contribution', 0, '通过充值获得的贡献点数'],
['!rows', [_common.RechargeGoods()], '数据'],
]
},
@ -449,6 +480,7 @@ class AAMarket(object):
['goods_id', '', '商品id'],
['goods_num', '', '商品数量'],
['account_address', '', '钱包地址(一般为小狐狸)'],
['currency_address', '', '货币地址'],
],
'response': [
_common.RspHead(),
@ -473,6 +505,7 @@ class AAMarket(object):
['goods_id', '', '商品id'],
['goods_num', '', '商品数量'],
['account_address', '', '钱包地址(一般为小狐狸)'],
['currency_address', '', '货币地址'],
['email', '', 'email'],
],
'response': [

View File

@ -1853,7 +1853,7 @@ class RechargeGoods(object):
['first_present_diamond', 0, '首冲赠送钻石'],
['is_first_recharge', 0, '是否第一次购买该商品'],
['max_buy_times', 0, '充值次数上限'],
['currencys', [[
['currency_list', [[
['name', '', '货币名'],
['address', '', '货币地址'],
]], '货币列表'],
@ -1895,3 +1895,13 @@ class BigwheelInfo(object):
['!items1', [BigwheelGrid()], '档位1'],
['!items2', [BigwheelGrid()], '档位2'],
]
class CecContributionActivity(object):
def __init__(self):
self.fields = [
['my_contribution', 0, '我的贡献点数'],
['global_contribution', 0, '全服贡献点数'],
['total_cec_pool', 0, 'cec总奖池'],
['my_expected_cec', 0, '我预计可得cec'],
]