This commit is contained in:
aozhiwei 2021-11-26 19:12:57 +08:00
parent d53e9c26ca
commit c2bf5f0874
2 changed files with 6 additions and 5 deletions

View File

@ -5,7 +5,7 @@ import _common
class Hero(object): class Hero(object):
def __init__(self): def __init__(self):
self.apis_ = [ self.apis = [
{ {
'name': 'heroList', 'name': 'heroList',
'desc': '获取英雄列表', 'desc': '获取英雄列表',
@ -16,7 +16,7 @@ class Hero(object):
], ],
'response': [ 'response': [
_common.RspHead(), _common.RspHead(),
['!hero_list', _common.Hero, '英雄列表'] ['!hero_list', _common.Hero(), '英雄列表']
] ]
}, },
{ {
@ -29,7 +29,7 @@ class Hero(object):
], ],
'response': [ 'response': [
_common.RspHead(), _common.RspHead(),
['!skin_list', _common.HeroSkin, '英雄皮肤列表'] ['!skin_list', _common.HeroSkin(), '英雄皮肤列表']
] ]
}, },
{ {

View File

@ -5,7 +5,7 @@ import _common
class Shop(object): class Shop(object):
def __init__(self): def __init__(self):
self.apis_ = [ self.apis = [
{ {
'name': 'buyHero', 'name': 'buyHero',
'desc': '购买英雄', 'desc': '购买英雄',
@ -18,7 +18,7 @@ class Shop(object):
], ],
'response': [ 'response': [
_common.RspHead(), _common.RspHead(),
['award', _common.Award, '奖励信息'], ['award', _common.Award(), '奖励信息'],
] ]
}, },
{ {
@ -34,6 +34,7 @@ class Shop(object):
] ]
}, },
{ {
'name': 'buyGunSkin',
'desc': '购买枪支皮肤buyGunSkin', 'desc': '购买枪支皮肤buyGunSkin',
'group': 'Shop', 'group': 'Shop',
'url': 'webapp/index.php?c=Shop&a=buyGunSkin', 'url': 'webapp/index.php?c=Shop&a=buyGunSkin',