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);
$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){