From 2514b929f15cd60c6e8353761c5e07a3f8902c75 Mon Sep 17 00:00:00 2001 From: hujiabin Date: Fri, 24 Mar 2023 16:59:17 +0800 Subject: [PATCH] 1 --- doc/Team.py | 13 +++++++++++++ webapp/controller/MissionController.class.php | 2 ++ webapp/controller/TeamController.class.php | 9 +++++++++ 3 files changed, 24 insertions(+) diff --git a/doc/Team.py b/doc/Team.py index d6c47a99..b2e2581c 100644 --- a/doc/Team.py +++ b/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,'枪械碎片数量'] + ] }, ] diff --git a/webapp/controller/MissionController.class.php b/webapp/controller/MissionController.class.php index c39b934d..8c18d4d4 100644 --- a/webapp/controller/MissionController.class.php +++ b/webapp/controller/MissionController.class.php @@ -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 )); diff --git a/webapp/controller/TeamController.class.php b/webapp/controller/TeamController.class.php index 52d854f7..687ae481 100644 --- a/webapp/controller/TeamController.class.php +++ b/webapp/controller/TeamController.class.php @@ -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) {