From 8232de31abf479995a7197b372fd8cd630fa78b8 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 6 Dec 2021 14:30:03 +0800 Subject: [PATCH] 1 --- doc/Ranking.py | 2 +- doc/_common.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/Ranking.py b/doc/Ranking.py index 26841a8..79e6350 100644 --- a/doc/Ranking.py +++ b/doc/Ranking.py @@ -17,7 +17,7 @@ class Ranking(object): ], 'response': [ _common.RspHead(), - ['ranking_list', [_common.RankingList], '排行榜数据'] + ['ranking_list', _common.RankingList(), '排行榜数据'] ] } ] diff --git a/doc/_common.py b/doc/_common.py index 71821d2..97b04f6 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -37,6 +37,7 @@ class UserInfo(object): def __init__(self): self.fields = [ + ['activate', 0, '是否已激活'], ['account_id', '', '账号id'], ['name', '', '用户名字'], ['head_id', 0, '头像id'], @@ -47,7 +48,8 @@ class UserInfo(object): ['diamond', 0, '钻石'], ['hero_id', 0, '当前使用的英雄ID'], ['first_fight', 0, '是否是第一次战斗'], - ['activate', 0, '是否已激活'], + ['!head_list', [0], '拥有的头像列表'], + ['!head_frame_list', [0], '拥有的头像框列表'], ] class Hero(object): @@ -241,6 +243,6 @@ class RankingList(object): def __init__(self): self.fields = [ ['type', 0, '排行榜类型 1:积分榜'], - ['!ranking_list', [_RankingItem()], '排行榜'] + ['!ranking_list', [RankingItem()], '排行榜'], ['my_ranked', 0, '我的排名'], ]