From 517c15ff1c47061cf4dc5edbef68434b8cf1d7cd Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Thu, 16 May 2024 15:50:58 +0800 Subject: [PATCH] 1 --- webapp/services/RoomBattleDataService.php | 40 ++++++++++++----------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/webapp/services/RoomBattleDataService.php b/webapp/services/RoomBattleDataService.php index 482b739e..ceff16e5 100644 --- a/webapp/services/RoomBattleDataService.php +++ b/webapp/services/RoomBattleDataService.php @@ -202,26 +202,28 @@ class RoomBattleDataService extends BaseService { $gold = $gold * ($totalCompute / ($totalCompute + $computeParam) * $computeMaxEffect + 1); $compute = ($totalCompute / ($totalCompute + $computeParam) * $computeMaxEffect + 1); } - if ($userDb['account_id'] == "6513_2006_ZsmnBnmQYcJ4XElLOmqTDBRySOrE66Kj"){ - error_log("BattleRewardsInfo:".json_encode(array( - 'goldLootIndex' => $rewardMeta['goldLoot'], + if ($userDb['account_id'] == "6513_2006_VBpXS6ACSw6oqbEspB3N1ezsAty0IIvk"){ + error_log("BattleGoldRecord:".json_encode(array( +// 'goldLootIndex' => $rewardMeta['goldLoot'], 'map_mode' => $this->mapMode, - '*baseGold*' => $baseGold, - 'teamRank' => $teamRank, - '*ranking*' => isset($coefficient) ? $coefficient : '空', - 'battleScore' => $battleScore, - 'realUserCount' => $this->realUserCount, - 'teamScoreTotal' => $teamScore, - 'teamScoreAvg' => $teamScoreAvg, - '*score*' => '=========', - 'wealthK' => $wealthK, - 'wealthE' => $wealthE, - 'wealthValue' => Hero::getHeroWealth($heroDb), - '*wealth*' => (1 + $wealthE * (Hero::getHeroWealth($heroDb) / (Hero::getHeroWealth($heroDb) + $wealthK))), - 'lastCompute' => isset($lastCompute) ? $lastCompute : '空', - 'currentCompute' => isset($currentCompute) ? $currentCompute : '空', - '*compute*' => isset($compute) ? $compute : '算力系统关闭', - 'finalGold' => floor($gold) +// '*baseGold*' => $baseGold, +// 'teamRank' => $teamRank, +// '*ranking*' => isset($coefficient) ? $coefficient : '空', +// 'battleScore' => $battleScore, +// 'realUserCount' => $this->realUserCount, +// 'teamScoreTotal' => $teamScore, +// 'teamScoreAvg' => $teamScoreAvg, +// '*score*' => '=========', +// 'wealthK' => $wealthK, +// 'wealthE' => $wealthE, +// 'wealthValue' => Hero::getHeroWealth($heroDb), +// '*wealth*' => (1 + $wealthE * (Hero::getHeroWealth($heroDb) / (Hero::getHeroWealth($heroDb) + $wealthK))), +// 'lastCompute' => isset($lastCompute) ? $lastCompute : '空', +// 'currentCompute' => isset($currentCompute) ? $currentCompute : '空', +// '*compute*' => isset($compute) ? $compute : '算力系统关闭', + 'goldTimes' => $goldModeTimes, + 'gold' => floor($gold), + 'dny_gold' => myself()->_getDailyV(TN_DAILY_GATHER_GOLD,0), ))); } if ($gold > 0){