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);