fix some issu
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user