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