From 043cc60076a80d2005ce58884f822461f556b212 Mon Sep 17 00:00:00 2001 From: songliang Date: Tue, 6 Jun 2023 14:11:04 +0800 Subject: [PATCH] ... --- webapp/bootstrap/constant.php | 2 +- webapp/controller/FirstTopupController.class.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/webapp/bootstrap/constant.php b/webapp/bootstrap/constant.php index 749794d3..d00d8e92 100644 --- a/webapp/bootstrap/constant.php +++ b/webapp/bootstrap/constant.php @@ -24,7 +24,7 @@ define('TN_HERO_MAX_LEVEL', 8008); define('TN_LAST_RANKING_TIME', 8009); define('TN_MISSION_STAR_SEASON', 8010); define('TN_RANK_STATUS', 99999); - +define('TN_FIRST_TUPOP_STATUS', 8012); define('TN_DAILY_BEGIN', 9001); define('TN_DAILY_LOGINS', 9001); diff --git a/webapp/controller/FirstTopupController.class.php b/webapp/controller/FirstTopupController.class.php index c8f05008..b1dacdf6 100644 --- a/webapp/controller/FirstTopupController.class.php +++ b/webapp/controller/FirstTopupController.class.php @@ -26,6 +26,9 @@ class FirstTopupController extends BaseAuthedController // 检查所有 奖励都 领取完成 $complete = ($status[0] == 2 && $status[1] == 2 && $status[2] == 2) ? 1 : 0; + if ($complete == 1) { + $this->_setV(TN_FIRST_TUPOP_STATUS, 0, 1); + } $this->_rspData( array( @@ -106,6 +109,11 @@ class FirstTopupController extends BaseAuthedController } } + $complete = ($status[0] == 2 && $status[1] == 2 && $status[2] == 2) ? 1 : 0; + if ($complete == 1) { + $this->_setV(TN_FIRST_TUPOP_STATUS, 0, 1); + } + $this->_rspData( array( 'group' => $group,