fixed price

This commit is contained in:
2026-06-28 10:46:09 +03:30
parent e21e97988c
commit dec13e8537
4 changed files with 106 additions and 22 deletions
@@ -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()]);
}
}