fixed price
This commit is contained in:
@@ -318,7 +318,10 @@ class ReportController extends Controller
|
||||
'montzar_response' => $montzar ?? null,
|
||||
]);
|
||||
|
||||
$config->UpdateConfig('montzar_closed', 'true');
|
||||
$config->applyMontzarSyncFailure();
|
||||
if (!$config->getBool('montzar_closed', true)) {
|
||||
$montzar_price = $config->getInt('montzar_live_price', 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -542,7 +545,7 @@ class ReportController extends Controller
|
||||
$config->UpdateConfig('montzar_closed', $montzar === 0 ? 'true' : 'false');
|
||||
} catch (\Throwable $e) {
|
||||
$montzar = 0;
|
||||
$config->UpdateConfig('montzar_closed', 'true');
|
||||
$config->applyMontzarSyncFailure();
|
||||
\Log::error('STORE MONZAR PRICE ERROR', ['message' => $e->getMessage()]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user