From 37c759ac4ac58a29cc225c50c4a7c54ea98b26a8 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 19 Sep 2022 19:03:59 +0800 Subject: [PATCH] 1 --- webapp/services/BattleDataService.php | 44 ++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/webapp/services/BattleDataService.php b/webapp/services/BattleDataService.php index fc2a73a3..8e359ea0 100644 --- a/webapp/services/BattleDataService.php +++ b/webapp/services/BattleDataService.php @@ -532,7 +532,27 @@ class BattleDataService extends BaseService { return; } - + if ($dropIdx == 0) { + $itemId = FragmentPool::dropHero(); + if ($itemId) { + array_push($this->reward['items'], + array( + 'item_id' => $itemId, + 'item_num' => 1 + )); + $this->_incDailyV(TN_DAILY_PVP_GET_FRAGMENT_NUM, 1); + } + } else if ($dropIdx == 1) { + $itemId = FragmentPool::dropGun(); + if ($itemId) { + array_push($this->reward['items'], + array( + 'item_id' => $itemId, + 'item_num' => 1 + )); + $this->_incDailyV(TN_DAILY_PVP_GET_FRAGMENT_NUM, 1); + } + } } private function rewardFragmentPve() @@ -569,6 +589,28 @@ class BattleDataService extends BaseService { return; } + if ($dropIdx == 0) { + $itemId = FragmentPool::dropHero(); + if ($itemId) { + array_push($this->reward['items'], + array( + 'item_id' => $itemId, + 'item_num' => 1 + )); + $this->_incDailyV(TN_DAILY_PVE_GET_FRAGMENT_NUM, 1); + } + } else if ($dropIdx == 1) { + $itemId = FragmentPool::dropGun(); + if ($itemId) { + array_push($this->reward['items'], + array( + 'item_id' => $itemId, + 'item_num' => 1 + )); + $this->_incDailyV(TN_DAILY_PVE_GET_FRAGMENT_NUM, 1); + } + } + } private function rewardCegPvp()