修复吃鸡活动bug

This commit is contained in:
hujiabin 2022-12-07 16:49:54 +08:00
parent d85546c30b
commit 31cc39c37e

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 :