fix bugs
This commit is contained in:
@@ -37,7 +37,8 @@ class ProductPriceSyncService
|
||||
: 'http://212.23.201.173:8381/price_list';
|
||||
|
||||
if ($feed === null) {
|
||||
return false;
|
||||
// حتی بدون فید مرجع، محصولات قیمتاپ را با مظنه زنده همگام کن
|
||||
return $this->syncAppPriceProducts();
|
||||
}
|
||||
|
||||
$products = Product::query()->whereNotNull('reading_method')->get();
|
||||
@@ -77,6 +78,11 @@ class ProductPriceSyncService
|
||||
|
||||
app(PriceSyncLogService::class)->record($source, $sourceUrl, $liquidGoldPrice, $logItems);
|
||||
|
||||
// مثل خانگی: آبشده / قیمتاپ را هم با مظنه زنده در DB همگام کن (fallback نمایش)
|
||||
if ($this->syncAppPriceProducts()) {
|
||||
$synced = true;
|
||||
}
|
||||
|
||||
if ($synced) {
|
||||
app(PriceBroadcastService::class)->broadcastListIfChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user