argument('file'); $rows = $importer->read($path); if ($this->option('dry-run')) { $this->info('文件校验通过,共' . count($rows) . '条;未写入。'); return self::SUCCESS; } $result = $store->import($rows, '命令行导入', hash_file('sha256', $path)); $this->info("导入完成:新增{$result['added']}条,更新{$result['updated']}条,未变化{$result['skipped']}条。"); return self::SUCCESS; } }