From 850364c64d729cbe2fa5fd678088fd173f26a028 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 16 Aug 2024 11:44:51 +0800 Subject: [PATCH] 1 --- doc/AAMarket.py | 33 +++++++++++++++++++++++++++++++++ doc/_common.py | 12 +++++++++++- 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/doc/AAMarket.py b/doc/AAMarket.py index d329f2d0..d0e0a2b0 100644 --- a/doc/AAMarket.py +++ b/doc/AAMarket.py @@ -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': [ diff --git a/doc/_common.py b/doc/_common.py index 5036a285..e112a834 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -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'], + ]