1
This commit is contained in:
commit
eadd8fb281
@ -255,7 +255,7 @@ class BattleController extends BaseAuthedController {
|
||||
if ($a['expScore'] == $b['expScore']) {
|
||||
return 0;
|
||||
}
|
||||
return ($a['expScore'] < $b['expScore']) ? -1 : 1;
|
||||
return ($a['expScore'] > $b['expScore']) ? -1 : 1;
|
||||
});
|
||||
}
|
||||
$roomBattleDataService->realUserCount = $realUserNum;
|
||||
|
@ -45,11 +45,11 @@ class OutAppNftController extends BaseController {
|
||||
$channel = getReqVal('channel', '');
|
||||
$openId = getReqVal('openId', '');
|
||||
$accountId = BC_POLY_CHANNEL.'_'.$this->_getGameId().'_'.$channel.'_'.$openId;
|
||||
$userDb = User::find($accountId);
|
||||
if (!$userDb){
|
||||
$this->_rspErr(1, 'user not found');
|
||||
return;
|
||||
}
|
||||
// $userDb = User::find($accountId);
|
||||
// if (!$userDb){
|
||||
// $this->_rspErr(1, 'user not found');
|
||||
// return;
|
||||
// }
|
||||
|
||||
$info = array(
|
||||
'loginVal' => 0,
|
||||
|
@ -85,6 +85,14 @@ class RoomBattleDataService extends BaseService {
|
||||
$newRank=$userDb['rank'];
|
||||
$ranked = $this->getMyRanked($account);
|
||||
$newScore = FormulaService::calcBattleAfterRankScoreNew($userDb,$ranked,$teamRanked,$winningPro);
|
||||
if ($account == "6513_2006_VBpXS6ACSw6oqbEspB3N1ezsAty0IIvk"){
|
||||
error_log("RankParam: ".json_encode(array(
|
||||
'rank' => $ranked,
|
||||
'teamRank' => $teamRanked,
|
||||
'winningPro' => $winningPro,
|
||||
"sortAccount" => $this->teamExpScoreSort
|
||||
)));
|
||||
}
|
||||
$newElo = FormulaService::calcUserEloValueNew($userDb,$ranked,$winningPro);
|
||||
if ($newScore < $userDb['score'] && $userDb['score']< 1300){
|
||||
$newScore = $userDb['score'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user