fix some issu
This commit is contained in:
@@ -52,7 +52,12 @@ class PriceStreamController extends Controller
|
||||
}
|
||||
|
||||
$cache = app(LivePriceCacheService::class);
|
||||
$last = $cache->get() ?? $cache->buildFromDatabase();
|
||||
$config = app(\App\Services\ConfigService::class);
|
||||
$last = $cache->get();
|
||||
// کش ممکن است no_quote صفرِ کوتاهعمر داشته باشد؛ با build از montzar_live_price جبران کن
|
||||
if (! is_array($last) || ! $config->payloadHasDisplayablePrice($last)) {
|
||||
$last = $cache->buildFromDatabase();
|
||||
}
|
||||
if (is_array($last) && $last !== []) {
|
||||
if ($customerId > 0) {
|
||||
$last = app(\App\Services\CustomerSpecialPricingService::class)
|
||||
|
||||
Reference in New Issue
Block a user