diff --git a/doc/Hero.py b/doc/Hero.py index d5ee007a..e1889f76 100644 --- a/doc/Hero.py +++ b/doc/Hero.py @@ -5,7 +5,7 @@ import _common class Hero(object): def __init__(self): - self.apis_ = [ + self.apis = [ { 'name': 'heroList', 'desc': '获取英雄列表', @@ -16,7 +16,7 @@ class Hero(object): ], 'response': [ _common.RspHead(), - ['!hero_list', _common.Hero, '英雄列表'] + ['!hero_list', _common.Hero(), '英雄列表'] ] }, { @@ -29,7 +29,7 @@ class Hero(object): ], 'response': [ _common.RspHead(), - ['!skin_list', _common.HeroSkin, '英雄皮肤列表'] + ['!skin_list', _common.HeroSkin(), '英雄皮肤列表'] ] }, { diff --git a/doc/Shop.py b/doc/Shop.py index 7c5eafb9..3b1bb94c 100644 --- a/doc/Shop.py +++ b/doc/Shop.py @@ -5,7 +5,7 @@ import _common class Shop(object): def __init__(self): - self.apis_ = [ + self.apis = [ { 'name': 'buyHero', 'desc': '购买英雄', @@ -18,7 +18,7 @@ class Shop(object): ], 'response': [ _common.RspHead(), - ['award', _common.Award, '奖励信息'], + ['award', _common.Award(), '奖励信息'], ] }, { @@ -34,6 +34,7 @@ class Shop(object): ] }, { + 'name': 'buyGunSkin', 'desc': '购买枪支皮肤buyGunSkin', 'group': 'Shop', 'url': 'webapp/index.php?c=Shop&a=buyGunSkin',