From ff570cd1ef194a104fe4a2835b5a1399cff02bf9 Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Fri, 5 Jul 2024 22:28:03 +0800 Subject: [PATCH] 1 --- webapp/services/RoomBattleDataService.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/webapp/services/RoomBattleDataService.php b/webapp/services/RoomBattleDataService.php index 296a9419..f23feb6b 100644 --- a/webapp/services/RoomBattleDataService.php +++ b/webapp/services/RoomBattleDataService.php @@ -289,9 +289,18 @@ class RoomBattleDataService extends BaseService { 'map_mode' => $this->mapMode, 'baseGold' => $baseGold, 'gold' => isset($baseValue) ? $baseValue : $gold, + 'box_rate' => $rate, 'rewards' => $reward, - 'heroBattleTimes' => $heroDb['idx'] .'|' .$heroTimes, - 'goldModeTimes' => $goldModeTimes, + 'goldInfo' => array( + 'heroBattleTimes' => $heroDb['idx'] .'|' .$heroTimes, + 'goldModeTimes' => $goldModeTimes, + ), + 'betInfo' => array( + 'realUser' => $this->realUserCount, + 'coefficient' => isset($coefficient) ? $coefficient : 0, + 'battleScore' => $battleScore, + 'teamScore' => $teamScore, + ) )); } }