feat(settings): enable_automation gate; reject stale montzar quote jumps

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-24 16:15:52 +03:30
co-authored by Cursor
parent b28a98938e
commit 352bb9976d
9 changed files with 212 additions and 18 deletions
+6 -3
View File
@@ -104,11 +104,14 @@ class LivePriceCacheService
if ($provider === 'montzar') {
$liveMontzar = (float) $config->get('montzar_live_price', 0);
if ($liveMontzar > 0) {
if ($liveMontzar > 0 && $config->isPlausibleQuotePrice($liveMontzar)) {
$base = $liveMontzar;
$montzarSource = (int) $liveMontzar;
$priceSource = 'montzar';
} else {
$montzarSource = 0;
$priceSource = 'database_last';
}
$montzarSource = (int) ($liveMontzar > 0 ? $liveMontzar : $base);
$priceSource = 'montzar';
} elseif ($provider === 'zaarbox') {
$zaarboxSource = (int) $base;
} elseif ($provider === 'main_product') {