Merge branch 'james_bc' of git.kingsome.cn:server/game2006api into james_bc

This commit is contained in:
aozhiwei 2022-12-07 17:53:56 +08:00
commit f9e7929c50

View File

@ -56,6 +56,7 @@ class RankActivityService extends BaseService {
'ceg'=>$gold 'ceg'=>$gold
)) ))
); );
$match_mode = getReqVal('match_mode', 0);
$ranked = getReqVal('ranked', 0); $ranked = getReqVal('ranked', 0);
$kills = getReqVal('kills', 0); $kills = getReqVal('kills', 0);
$aliveTime = getReqVal('alive_time', 0)/1000; $aliveTime = getReqVal('alive_time', 0)/1000;
@ -63,7 +64,7 @@ class RankActivityService extends BaseService {
switch ($currentRankingMeta['themeType']){ switch ($currentRankingMeta['themeType']){
case self::KILLS_TYPE : case self::KILLS_TYPE :
{ {
if($kills>0){ if($match_mode==0 && $kills>0){
$this->internalUpdateRankActivityNew( $this->internalUpdateRankActivityNew(
$currentRankingMeta, $currentRankingMeta,
getReqVal('kills', 0), getReqVal('kills', 0),
@ -73,7 +74,7 @@ class RankActivityService extends BaseService {
break; break;
case self::WINS_TYPE : case self::WINS_TYPE :
{ {
if ($ranked == 1){ if ( $match_mode==0 && $ranked == 1){
$this->internalUpdateRankActivityNew( $this->internalUpdateRankActivityNew(
$currentRankingMeta, $currentRankingMeta,
$ranked, $ranked,
@ -92,10 +93,12 @@ class RankActivityService extends BaseService {
if (!$cond) { if (!$cond) {
return; return;
} }
$this->internalUpdateRankActivityNew( if ( $match_mode==0){
$currentRankingMeta, $this->internalUpdateRankActivityNew(
1, $currentRankingMeta,
$userDb); 1,
$userDb);
}
} }
break; break;
case self::GUILD_TYPE : case self::GUILD_TYPE :