This commit is contained in:
hujiabin 2024-07-31 17:58:48 +08:00
parent 0919b5ca7c
commit 658603e0a0

View File

@ -5,10 +5,10 @@ class HashRate(object):
def __init__(self): def __init__(self):
self.apis = [ self.apis = [
{ {
'name': 'info', 'name': 'taskList',
'desc': '获取算力信息', 'desc': '获取算力信息',
'group': 'HashRate', 'group': 'HashRate',
'url': 'webapp/index.php?c=HashRate&a=info', 'url': 'webapp/index.php?c=HashRate&a=taskList',
'params': [ 'params': [
_common.ReqHead(), _common.ReqHead(),
['type', 0, '1:战斗任务 2:英雄任务 3:行为任务 4:充值消费任务'], ['type', 0, '1:战斗任务 2:英雄任务 3:行为任务 4:充值消费任务'],
@ -24,6 +24,19 @@ class HashRate(object):
['myHashRate', 0, '我的算力'], ['myHashRate', 0, '我的算力'],
['refresh_times', 0, '今日刷新次数'], ['refresh_times', 0, '今日刷新次数'],
] ]
},{
'name': 'commitTask',
'desc': '获取算力信息',
'group': 'HashRate',
'url': 'webapp/index.php?c=HashRate&a=commitTask',
'params': [
_common.ReqHead(),
['task_id', 0, '任务id'],
],
'response': [
_common.RspHead(),
['!award', [_common.AwardItem()], '奖励'],
]
}, },
] ]