This commit is contained in:
aozhiwei 2022-09-17 14:59:55 +08:00
parent cb0ab1ceb8
commit 868ab80e27

View File

@ -467,13 +467,20 @@ class BattleDataService extends BaseService {
{
$pveRankScore = getReqVal('pve_rank_score', 0);
$todayPveBattleTimes = $this->_getDailyV(TN_DAILY_PVE_BATTLE_TIMES, 0);
$todayPveGetFragmentNum = $this->_getDailyV(TN_DAILY_PVE_GET_FRAGMENT_NUM, 0);
$todayPvpGetFragmentNum = $this->_getDailyV(TN_DAILY_PVP_GET_FRAGMENT_NUM, 0);
$this->_incDailyV(TN_DAILY_PVE_BATTLE_TIMES, 1);
if ($todayPveGetFragmentNum + $todayPvpGetFragmentNum > 2) {
return;
}
$onlineNum = $this->getOnlineNumber();
$instanceLevel = $this->pveGeminiMeta['gemini_lv'];
$instanceRank = mt\PveGeminiMode::calcStar($this->pveGeminiModeMeta, $pveRankScore);
$instanceRankRate = $this->getInstanceRankRate();
$bossReward = getReqVal('pve_kill_boss', 0) ? 1 : 0;
$todayPveBattleTimes = $this->_getDailyV(TN_DAILY_PVE_BATTLE_TIMES, 0);
$todayPveGetFragmentNum = $this->_getDailyV(TN_DAILY_PVE_GET_FRAGMENT_NUM, 0);
$heroQuality = $this->heroDto['quality'];
$dropRate = max(1.15 - ($heroQuality - $instanceLevel) * 0.25, 0);