mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fix for GCS
This commit is contained in:
parent
63e25de2d9
commit
8f7256f49f
@ -153,10 +153,10 @@ class CheckData extends Command
|
||||
|
||||
foreach ($invoices as $invoice) {
|
||||
$link = $invoice->getInvitationLink('view', true, true);
|
||||
$this->logMessage('Checking invoice: ' . $invoice->id . ' - ' . $invoice->balance);
|
||||
//$this->logMessage('Checking invoice: ' . $invoice->id . ' - ' . $invoice->balance);
|
||||
$result = CurlUtils::phantom('GET', $link . '?phantomjs=true&phantomjs_balances=true&phantomjs_secret=' . env('PHANTOMJS_SECRET'));
|
||||
$result = floatval(strip_tags($result));
|
||||
$this->logMessage('Result: ' . $result);
|
||||
//$this->logMessage('Result: ' . $result);
|
||||
|
||||
if ($result && $result != $invoice->balance) {
|
||||
$this->logMessage("Amounts do not match {$link} - PHP: {$invoice->balance}, JS: {$result}");
|
||||
|
@ -91,7 +91,7 @@ class DocumentRepository extends BaseRepository
|
||||
if (! $disk->exists($filename)) {// Have we already stored the same file
|
||||
$stream = fopen($filePath, 'r');
|
||||
$disk->getDriver()->putStream($filename, $stream, ['mimetype' => $documentTypeData['mime']]);
|
||||
fclose($stream);
|
||||
//fclose($stream);
|
||||
}
|
||||
|
||||
// This is an image; check if we need to create a preview
|
||||
|
Loading…
Reference in New Issue
Block a user