This commit is contained in:
2026-06-11 19:23:16 +03:30
parent f329419c3a
commit b5d2b878de
10 changed files with 237 additions and 116 deletions
+2 -2
View File
@@ -9,11 +9,11 @@ class SyncProductPrices extends Command
{
protected $signature = 'product:sync-prices';
protected $description = 'Sync variable product prices from external feeds (every ~30s via scheduler)';
protected $description = 'Fetch zaarbox price board + sync product DB (scheduler: every 30s)';
public function handle(ProductPriceSyncService $syncService): int
{
// کران: همیشه فید تازه از zaarbox
// کران: GET https://price.zaarbox.ir/api/free (یا zaarbox_api_url) → کش + UPDATE محصولات
$syncService->syncAll(true);
return self::SUCCESS;