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);