From 60538293656f08f3f255921c75355559c9373c3e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 2 Aug 2023 18:01:28 +0800 Subject: [PATCH] 1 --- .../controller/FirstTopupController.class.php | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/webapp/controller/FirstTopupController.class.php b/webapp/controller/FirstTopupController.class.php index 1052051f..e0658da7 100644 --- a/webapp/controller/FirstTopupController.class.php +++ b/webapp/controller/FirstTopupController.class.php @@ -1,26 +1,30 @@ _getMysql(''); + $dbInfo = FirstTopup::get(); + if (!$dbInfo) { + $this->_rspData(array( + 'complete' => 0, + 'firstTopupList' => mt\FirstTopup::getGroups(), + 'status' => 0, + ) + ); + return; + } $status = $this->getStatusFromDB($conn);