fix some issu

This commit is contained in:
2026-08-26 21:47:09 +03:30
parent 74cc50149f
commit 40b185187c
14 changed files with 179 additions and 72 deletions
+8
View File
@@ -98,6 +98,14 @@ class PriceBroadcastService
$lastPayload = app(ConfigService::class)->applyHomePriceDisplayState($lastPayload);
$lastPayload = app(ZaarboxPriceService::class)->attachGoldOunceToPayload($lastPayload);
// no_quote صفر را روی SSE پخش نکن — کلاینت مظنهٔ معتبر را پاک می‌کرد
// در حالی که /api/price/last هنوز قیمت داشت.
if (! app(ConfigService::class)->payloadHasDisplayablePrice($lastPayload)
&& (string) ($lastPayload['status'] ?? '') === 'no_quote'
) {
return;
}
if (! $this->rememberHashIfChanged(self::LAST_HASH_KEY, self::lastPriceIdentity($lastPayload))) {
return;
}