feat(settings): enable_automation gate; reject stale montzar quote jumps
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user