This commit is contained in:
hujiabin 2024-05-16 15:50:58 +08:00
parent 49641c12b2
commit 517c15ff1c

View File

@ -202,26 +202,28 @@ class RoomBattleDataService extends BaseService {
$gold = $gold * ($totalCompute / ($totalCompute + $computeParam) * $computeMaxEffect + 1); $gold = $gold * ($totalCompute / ($totalCompute + $computeParam) * $computeMaxEffect + 1);
$compute = ($totalCompute / ($totalCompute + $computeParam) * $computeMaxEffect + 1); $compute = ($totalCompute / ($totalCompute + $computeParam) * $computeMaxEffect + 1);
} }
if ($userDb['account_id'] == "6513_2006_ZsmnBnmQYcJ4XElLOmqTDBRySOrE66Kj"){ if ($userDb['account_id'] == "6513_2006_VBpXS6ACSw6oqbEspB3N1ezsAty0IIvk"){
error_log("BattleRewardsInfo:".json_encode(array( error_log("BattleGoldRecord:".json_encode(array(
'goldLootIndex' => $rewardMeta['goldLoot'], // 'goldLootIndex' => $rewardMeta['goldLoot'],
'map_mode' => $this->mapMode, 'map_mode' => $this->mapMode,
'*baseGold*' => $baseGold, // '*baseGold*' => $baseGold,
'teamRank' => $teamRank, // 'teamRank' => $teamRank,
'*ranking*' => isset($coefficient) ? $coefficient : '空', // '*ranking*' => isset($coefficient) ? $coefficient : '空',
'battleScore' => $battleScore, // 'battleScore' => $battleScore,
'realUserCount' => $this->realUserCount, // 'realUserCount' => $this->realUserCount,
'teamScoreTotal' => $teamScore, // 'teamScoreTotal' => $teamScore,
'teamScoreAvg' => $teamScoreAvg, // 'teamScoreAvg' => $teamScoreAvg,
'*score*' => '=========', // '*score*' => '=========',
'wealthK' => $wealthK, // 'wealthK' => $wealthK,
'wealthE' => $wealthE, // 'wealthE' => $wealthE,
'wealthValue' => Hero::getHeroWealth($heroDb), // 'wealthValue' => Hero::getHeroWealth($heroDb),
'*wealth*' => (1 + $wealthE * (Hero::getHeroWealth($heroDb) / (Hero::getHeroWealth($heroDb) + $wealthK))), // '*wealth*' => (1 + $wealthE * (Hero::getHeroWealth($heroDb) / (Hero::getHeroWealth($heroDb) + $wealthK))),
'lastCompute' => isset($lastCompute) ? $lastCompute : '空', // 'lastCompute' => isset($lastCompute) ? $lastCompute : '空',
'currentCompute' => isset($currentCompute) ? $currentCompute : '空', // 'currentCompute' => isset($currentCompute) ? $currentCompute : '空',
'*compute*' => isset($compute) ? $compute : '算力系统关闭', // '*compute*' => isset($compute) ? $compute : '算力系统关闭',
'finalGold' => floor($gold) 'goldTimes' => $goldModeTimes,
'gold' => floor($gold),
'dny_gold' => myself()->_getDailyV(TN_DAILY_GATHER_GOLD,0),
))); )));
} }
if ($gold > 0){ if ($gold > 0){