修复吃鸡活动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
))
);
$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,11 +93,13 @@ class RankActivityService extends BaseService {
if (!$cond) {
return;
}
if ( $match_mode==0){
$this->internalUpdateRankActivityNew(
$currentRankingMeta,
1,
$userDb);
}
}
break;
case self::GUILD_TYPE :
{