From 868ab80e2760a55e8792909afa3e95451b56afb4 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 17 Sep 2022 14:59:55 +0800 Subject: [PATCH] 1 --- webapp/services/BattleDataService.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/webapp/services/BattleDataService.php b/webapp/services/BattleDataService.php index 57907067..e0864b53 100644 --- a/webapp/services/BattleDataService.php +++ b/webapp/services/BattleDataService.php @@ -467,13 +467,20 @@ class BattleDataService extends BaseService { { $pveRankScore = getReqVal('pve_rank_score', 0); + $todayPveBattleTimes = $this->_getDailyV(TN_DAILY_PVE_BATTLE_TIMES, 0); + $todayPveGetFragmentNum = $this->_getDailyV(TN_DAILY_PVE_GET_FRAGMENT_NUM, 0); + $todayPvpGetFragmentNum = $this->_getDailyV(TN_DAILY_PVP_GET_FRAGMENT_NUM, 0); + + $this->_incDailyV(TN_DAILY_PVE_BATTLE_TIMES, 1); + if ($todayPveGetFragmentNum + $todayPvpGetFragmentNum > 2) { + return; + } + $onlineNum = $this->getOnlineNumber(); $instanceLevel = $this->pveGeminiMeta['gemini_lv']; $instanceRank = mt\PveGeminiMode::calcStar($this->pveGeminiModeMeta, $pveRankScore); $instanceRankRate = $this->getInstanceRankRate(); $bossReward = getReqVal('pve_kill_boss', 0) ? 1 : 0; - $todayPveBattleTimes = $this->_getDailyV(TN_DAILY_PVE_BATTLE_TIMES, 0); - $todayPveGetFragmentNum = $this->_getDailyV(TN_DAILY_PVE_GET_FRAGMENT_NUM, 0); $heroQuality = $this->heroDto['quality']; $dropRate = max(1.15 - ($heroQuality - $instanceLevel) * 0.25, 0);