1
This commit is contained in:
parent
8ca927d436
commit
764f4ff43b
@ -189,10 +189,12 @@ class RoomBattleDataService extends BaseService {
|
||||
(!Hero::verifyValid($heroDb) || $heroTimes >= $heroTimesMax || $goldModeTimes >= $mapModeMeta['rewards_max_time'])){
|
||||
error_log("金币模式:出战英雄没有打金时间或每日打金场次上限");
|
||||
}else{
|
||||
error_log('settlementReward : star');
|
||||
if ($this->mapMode == mt\MapMode::GOLD_MODE){
|
||||
myself()->_incDailyV(TN_DAILY_GOLD_MODE_BATTLE_TIMES,$heroDb['idx'],1);
|
||||
myself()->_incDailyV(TN_DAILY_GOLD_MODE_BATTLE_TIMES,0,1);
|
||||
}
|
||||
error_log('settlementReward : test1');
|
||||
if (!empty($rewardMeta['goldLoot'])){
|
||||
$items = LootService::dropOutItem($rewardMeta['goldLoot']);
|
||||
foreach ($items as $item){
|
||||
@ -204,6 +206,7 @@ class RoomBattleDataService extends BaseService {
|
||||
}
|
||||
}
|
||||
}
|
||||
error_log('settlementReward : test2');
|
||||
if ($gold > 0){
|
||||
// $strArr = explode("|",$rewardMeta['goldParam']);
|
||||
$coefficientArr = explode(";",$rewardMeta['goldParam']);
|
||||
@ -215,7 +218,7 @@ class RoomBattleDataService extends BaseService {
|
||||
$gold = floor($gold * $this->realUserCount * $coefficient * ($battleScore / $teamScore));
|
||||
}
|
||||
}
|
||||
|
||||
error_log('settlementReward : test3');
|
||||
//财富值加成
|
||||
$wealthK = mt\Parameter::getVal('economy_hero_wealth_K',0);
|
||||
$wealthE = mt\Parameter::getVal('economy_hero_wealth_E',0);
|
||||
@ -224,7 +227,7 @@ class RoomBattleDataService extends BaseService {
|
||||
// $wealthValue = round($wealthRate,4);
|
||||
//基础金币获得
|
||||
$baseValue = $gold;
|
||||
|
||||
error_log('settlementReward : test4');
|
||||
//算力加成
|
||||
$currentPeriod= \mt\AchievementsCycle::getCurrentPeriod();
|
||||
if ($currentPeriod && myself()->_getNowTime() >= strtotime($currentPeriod['income_start_time'])){
|
||||
@ -240,6 +243,7 @@ class RoomBattleDataService extends BaseService {
|
||||
|
||||
$hashRateValue = round($powerRate,4);
|
||||
}
|
||||
error_log('settlementReward : test5');
|
||||
if ($userDb['account_id'] == "6517_2006_s1_0_104162729566475397176"){
|
||||
error_log("BattleGoldRecord:".json_encode(array(
|
||||
'goldLootIndex' => $rewardMeta['goldLoot'],
|
||||
@ -273,6 +277,7 @@ class RoomBattleDataService extends BaseService {
|
||||
)
|
||||
));
|
||||
myself()->_incDailyV(TN_DAILY_GATHER_GOLD,0,floor($gold));
|
||||
error_log('settlementReward : test6');
|
||||
}
|
||||
}
|
||||
|
||||
@ -289,6 +294,7 @@ class RoomBattleDataService extends BaseService {
|
||||
}
|
||||
}
|
||||
}
|
||||
error_log('settlementReward : end'.'box-'.$rate);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user