From a29049af0eed975ee64e4be88dacb8259c6ee4ce Mon Sep 17 00:00:00 2001 From: hujiabin Date: Mon, 12 Dec 2022 14:37:18 +0800 Subject: [PATCH] 1 --- webapp/controller/RankingController.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/webapp/controller/RankingController.class.php b/webapp/controller/RankingController.class.php index 8715a4f9..e9fd36c7 100644 --- a/webapp/controller/RankingController.class.php +++ b/webapp/controller/RankingController.class.php @@ -135,13 +135,13 @@ class RankingController extends BaseAuthedController { $award = Season::seasonReward($currRankMeta); } //掉段 -// if ($dropRankMeta) { -// myself()->_updateUserInfo(array( -// 'rank' => $dropRankMeta['id'], -// 'score' => $dropRankMeta['rank_score'], -// 'last_season_id' => $currSeasonMeta['id'], -// )); -// } + if ($dropRankMeta) { + myself()->_updateUserInfo(array( + 'rank' => $dropRankMeta['id'], + 'score' => $dropRankMeta['rank_score'], + 'last_season_id' => $currSeasonMeta['id'], + )); + } $awardService = new services\AwardService(); $propertyChgService = new services\PropertyChgService(); $propertyChgService->addUserChg();