run('reporting:sync', function () use ($service) { $result = $service->sync((bool) $this->option('full')); $this->line(json_encode($result, JSON_UNESCAPED_UNICODE | JSON_THROW_ON_ERROR)); return $result['errors'] > 0 ? self::FAILURE : self::SUCCESS; }); if ($exit === null) $this->info('报表同步已在运行,跳过本次执行'); return $exit ?? self::SUCCESS; } }