1
This commit is contained in:
parent
2b6b89b465
commit
3a06683610
@ -977,16 +977,6 @@ class TameBattleDataService extends BaseService {
|
||||
// $winningPro = 0.5;
|
||||
$winningPro = 1/(1+pow(10,(-(0.7*($userInfo['elo']-$myAvg)+0.3*(0))/400)));
|
||||
}
|
||||
error_log(json_encode(
|
||||
array(
|
||||
'account_id' => $userInfo['account_id'],
|
||||
'myElo' =>$userInfo['elo'],
|
||||
'myAvg' => $myAvg,
|
||||
'myTeam' =>$myTeam,
|
||||
'opponentAvg'=>$tempSumList,
|
||||
'winningPro' => $winningPro,
|
||||
)
|
||||
));
|
||||
return $winningPro;
|
||||
}
|
||||
|
||||
@ -1238,7 +1228,7 @@ class TameBattleDataService extends BaseService {
|
||||
);
|
||||
}
|
||||
if (myself()->_getDaySeconds($hisBattleData['data']['modifytime']) <
|
||||
myself()->_getDaySeconds(strtotime($currentPeriod['obtain_end_time']) )) {
|
||||
myself()->_getDaySeconds(strtotime($currentPeriod['obtain_start_time']) )) {
|
||||
$hisBattleData['data'] = array(
|
||||
'pvpData' => array(),
|
||||
'mobaData' => array(),
|
||||
@ -1246,11 +1236,6 @@ class TameBattleDataService extends BaseService {
|
||||
'modifytime' => myself()->_getNowTime()
|
||||
);
|
||||
}
|
||||
error_log('_addHashRateTask2:'.json_encode(array(
|
||||
'obtain_end_time' => strtotime($currentPeriod['obtain_end_time']),
|
||||
'now_time' => myself()->_getNowTime(),
|
||||
'currentPeriod' => json_encode($currentPeriod),
|
||||
)));
|
||||
if ($currentPeriod && strtotime($currentPeriod['obtain_end_time']) > myself()->_getNowTime()){
|
||||
switch (getXVal($this->allInfo,'room_mode', 0)){
|
||||
case self::MATCH_MODE_PVP :{
|
||||
|
Loading…
x
Reference in New Issue
Block a user