fix bugs
This commit is contained in:
@@ -79,17 +79,12 @@ class ProductDisplayPriceService
|
||||
$this->resolveFallbackPayload();
|
||||
}
|
||||
|
||||
if (! app(ConfigService::class)->isStore()) {
|
||||
app(ZaarboxPriceService::class)->cachedPriceList(false);
|
||||
}
|
||||
// فروشگاه و خانگی هر دو ممکن است reading_method / قیمت اپ داشته باشند
|
||||
app(ZaarboxPriceService::class)->cachedPriceList(false);
|
||||
}
|
||||
|
||||
public function enrichForApi(Collection|iterable $products): void
|
||||
{
|
||||
if (app(ConfigService::class)->isStore()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$collection = collect($products);
|
||||
$zaarbox = app(ZaarboxPriceService::class);
|
||||
// مثل ادمین — روی cache miss یک بار fetch؛ نه فقط getCachedPriceListOnly
|
||||
|
||||
Reference in New Issue
Block a user