This commit is contained in:
aozhiwei 2022-11-21 16:10:26 +08:00
parent d3a5f2a91f
commit c6b1f93a10

View File

@ -226,6 +226,8 @@ class BattleDataService extends BaseService {
"pve_instance_id" => getReqVal('pve_instance_id', 0),
"pve_instance_mode" => getReqVal('pve_instance_mode', 0),
);
error_log('战报-----------------------------------History');
error_log(json_encode($data));
BattleHistory::add($data);
}
@ -473,6 +475,8 @@ class BattleDataService extends BaseService {
$newScore = FormulaService::calcBattleAfterRankScore($userInfo,$_REQUEST,$winningPro); //赛后排位积分
$newElo = FormulaService::calcUserEloValue($userInfo,$_REQUEST,$winningPro); //赛后elo积分
mt\Rank::calcNewRankAndScore( $newRank, $newScore);
error_log('NewScore---------------'.$newScore);
error_log('NewELO---------------'.$newElo );
if ( $newScore != $userInfo['score'] ) {
myself()->_updateUserInfo(array(
'rank' => $newRank,