Skip to content

Commit

Permalink
remove test stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Praesidiarius committed Apr 16, 2021
1 parent bb55267 commit 27061d4
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/Controller/BatchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,8 @@ public function indexAction()
{
$this->layout('layout/json');

if (getenv('PLCAPIMODE') == 'dev') {
echo 'Welcome to Faucet Batch TEST Server';
} else {
echo 'Welcome to Faucet Batch Server';
}

echo 'Welcome to Faucet Batch Server';

return false;
}
Expand Down Expand Up @@ -239,6 +236,9 @@ public function getminerbalancesAction()
}
$this->layout('layout/json');

$sApiINfo = file_get_contents(CoreEntityController::$aGlobalSettings['miner-pool-url']);
$oApiData = json_decode($sApiINfo);

$oMinerTbl = $this->getCustomTable('faucet_miner');
$oUsrTbl = $this->getCustomTable('user');

Expand All @@ -257,11 +257,6 @@ public function getminerbalancesAction()
# user not found
}
if($oMinerUser) {
$sApiURL = CoreEntityController::$aGlobalSettings['miner-pool-url'];
$sApiURL .= '/swissfaucetio'.$oMinerUser->getID();
$sApiINfo = file_get_contents($sApiURL);
$oApiData = json_decode($sApiINfo);

$iCurrentShares = $oW->rating;

$oLastEntryWh = new Where();
Expand Down

0 comments on commit 27061d4

Please sign in to comment.