From fe7d51812e23672eae13ce0f62e4604d95fc7858 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 19 Sep 2022 12:02:53 +0800 Subject: [PATCH] 1 --- webapp/services/BattleDataService.php | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/webapp/services/BattleDataService.php b/webapp/services/BattleDataService.php index a7379651..30f5a736 100644 --- a/webapp/services/BattleDataService.php +++ b/webapp/services/BattleDataService.php @@ -102,10 +102,13 @@ class BattleDataService extends BaseService { case 0: { //匹配赛模式 - $this->updatePvpData(); - $this->rewardCegPvp(); - $this->rewardFragmentPvp(); - $this->_incDailyV(TN_DAILY_PVP_BATTLE_TIMES, 1); + try { + $this->updatePvpData(); + $this->rewardCegPvp(); + $this->rewardFragmentPvp(); + } finally { + $this->_incDailyV(TN_DAILY_PVP_BATTLE_TIMES, 1); + } } break; case 1: @@ -116,11 +119,14 @@ class BattleDataService extends BaseService { case 2: { //pve - $this>updatePveData(); - if ($this->pveGeminiMeta && - $this->pveGeminiMetaMode) { - $this->rewardCegPve(); - $this->rewardFragmentPve(); + try { + $this>updatePveData(); + if ($this->pveGeminiMeta && + $this->pveGeminiMetaMode) { + $this->rewardCegPve(); + $this->rewardFragmentPve(); + } + } finally { $this->_incDailyV(TN_DAILY_PVE_BATTLE_TIMES, 1); } }