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):
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(), '英雄皮肤列表']
]
},
{

View File

@ -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',