Fix for check data

This commit is contained in:
Hillel Coren 2017-08-17 11:56:46 +03:00
parent b690f30cc4
commit 3bc4dd17ae

View File

@ -160,7 +160,7 @@ class CheckData extends Command
$link = $invoice->getInvitationLink('view', true, true);
$result = CurlUtils::phantom('GET', $link . '?phantomjs=true&phantomjs_balances=true&phantomjs_secret=' . env('PHANTOMJS_SECRET'));
$result = floatval(strip_tags($result));
$invoice->fresh();
$invoice = $invoice->fresh();
//$this->logMessage('Checking invoice: ' . $invoice->id . ' - ' . $invoice->balance);
//$this->logMessage('Result: ' . $result);