1
This commit is contained in:
parent
b04a53dcbb
commit
2514b929f1
13
doc/Team.py
13
doc/Team.py
@ -202,5 +202,18 @@ class Team(object):
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
]
|
||||
},{
|
||||
'name': 'getPveFragmentNumOrDay',
|
||||
'desc': '当天获取碎片的数量',
|
||||
'group': 'Team',
|
||||
'url': 'webapp/index.php?c=Team&a=getPveFragmentNumOrDay',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['heroNum',0,'英雄碎片数量'],
|
||||
['gunNum',0,'枪械碎片数量']
|
||||
]
|
||||
},
|
||||
]
|
||||
|
@ -106,6 +106,8 @@ class MissionController extends BaseAuthedController {
|
||||
'current_week_active_value' => min($this->_getWeeklyV(TN_WEEKLY_ACTIVE, 0), mt\Parameter::getVal('max_weekly', 0)),
|
||||
'day_active_limit' => mt\Parameter::getVal('activeness_limit', 0),
|
||||
'week_active_limit' => mt\Parameter::getVal('max_weekly', 0),
|
||||
'day_time' => $this->_getDaySeconds(time())+3600*24,
|
||||
'week_time' => $this->_getMondaySeconds() + 7*24*3600,
|
||||
'mission_list1' => $missionDtoList1,
|
||||
'mission_list2' => $missionDtoList2
|
||||
));
|
||||
|
@ -526,6 +526,15 @@ class TeamController extends BaseAuthedController {
|
||||
$this->_rspOk();
|
||||
}
|
||||
|
||||
public function getPveFragmentNumOrDay(){
|
||||
$todayPveGetHeroFragmentNum = myself()->_getDailyV(TN_DAILY_PVE_GET_HERO_FRAGMENT_NUM, 0);
|
||||
$todayPveGetGunFragmentNum = myself()->_getDailyV(TN_DAILY_PVE_GET_GUN_FRAGMENT_NUM, 0);
|
||||
$this->_rspData(array(
|
||||
'heroNum'=>$todayPveGetHeroFragmentNum,
|
||||
'gunNum'=>$todayPveGetGunFragmentNum,
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
private function readTeamDb($r, $teamUuid)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user