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