This commit is contained in:
aozhiwei 2024-10-29 15:38:29 +08:00
parent 3755b9d5e0
commit 5f726add19
3 changed files with 28 additions and 0 deletions

View File

@ -34,6 +34,8 @@ class AAWheel(object):
],
'response': [
_common.RspHead(),
['award', _common.WheelAward(), '奖励信息'],
['side_effect', _common.WheelAward(), '附加效应'],
]
},
{

View File

@ -11,6 +11,10 @@
* errcode=1008 该接口功能已关闭(admin后台上配置为功能关闭客户端需刷新功能开关)
*
*
* 以下是积分转盘专有
* 所有的协议都可能携带award()和side_effectaward用来显示获得的东西,side_effect用来更新本地数据
*
*
*/
/**

View File

@ -1965,3 +1965,25 @@ class WheelUser(object):
['hourly_earnings', 0, '每小时收益'],
['dice', 0, '骰子数'],
]
class WheelAwardItem(object):
def __init__(self):
self.fields = [
['item_id', 0, '道具id'],
['item_num', 0, '道具数量'],
]
class WheelAward(object):
def __init__(self):
self.fields = [
['!items', [WheelAwardItem()], '奖励物品列表'],
]
class SideEffect(object):
def __init__(self):
self.fields = [
['user_info', WheelUser(), '用户信息变更(用来更新本地客户端字段(有则更新无则不变))'],
]