1
This commit is contained in:
parent
b56b2792c1
commit
c186c7ef20
@ -17,8 +17,10 @@ class Mission(object):
|
|||||||
],
|
],
|
||||||
'response': [
|
'response': [
|
||||||
_common.RspHead(),
|
_common.RspHead(),
|
||||||
['current_active_value', 0, '当前活跃度'],
|
['current_day_active_value', 0, '当前日活跃度'],
|
||||||
['max_active_value', 0, '活跃度上限'],
|
['current_week_active_value', 0, '当前周活跃度'],
|
||||||
|
['day_active_limit', 0, '每日活跃度上限'],
|
||||||
|
['week_active_limit', 0, '每周活跃度上限'],
|
||||||
['!mission_list1', [_common.Mission()], '任务列表1'],
|
['!mission_list1', [_common.Mission()], '任务列表1'],
|
||||||
['!mission_list2', [_common.Mission()], '任务列表2'],
|
['!mission_list2', [_common.Mission()], '任务列表2'],
|
||||||
]
|
]
|
||||||
|
@ -102,8 +102,8 @@ class MissionController extends BaseAuthedController {
|
|||||||
// $specMissionDto['state'] = 9636;
|
// $specMissionDto['state'] = 9636;
|
||||||
// }
|
// }
|
||||||
$this->_rspData(array(
|
$this->_rspData(array(
|
||||||
'current_active_value' => min($this->_getV(TN_ACTIVE, 0), mt\Parameter::getVal('max_activity', 0)),
|
'current_day_active_value' => min($this->_getV(TN_DAILY_ACTIVE, 0), mt\Parameter::getVal('activeness_limit', 0)),
|
||||||
'max_active_value' => mt\Parameter::getVal('max_activity', 0),
|
'current_week_active_value' => min($this->_getV(TN_WEEKLY_ACTIVE, 0), mt\Parameter::getVal('max_weekly', 0)),
|
||||||
'day_active_limit' => mt\Parameter::getVal('activeness_limit', 0),
|
'day_active_limit' => mt\Parameter::getVal('activeness_limit', 0),
|
||||||
'week_active_limit' => mt\Parameter::getVal('max_weekly', 0),
|
'week_active_limit' => mt\Parameter::getVal('max_weekly', 0),
|
||||||
'mission_list1' => $missionDtoList1,
|
'mission_list1' => $missionDtoList1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user