sync( $this->option('batch') === null ? null : (int) $this->option('batch'), $this->option('max-batches') === null ? null : (int) $this->option('max-batches'), $this->option('daily-batch') === null ? null : (int) $this->option('daily-batch'), $this->option('daily-max-batches') === null ? null : (int) $this->option('daily-max-batches'), ); } catch (Throwable $exception) { Log::error('店铺维度报表共享镜像同步失败。', ['exception' => $exception::class]); $this->error('店铺维度报表共享镜像同步失败,页面继续读取上一版数据。'); return self::FAILURE; } $this->info(sprintf( '店铺报表镜像:生命周期 %s/%d 行,账单 %s/%d 行,日汇总 %s/%d 行。', $result['lifecycles']['status'], $result['lifecycles']['source_rows'], $result['bills']['status'], $result['bills']['source_rows'], $result['daily']['status'], $result['daily']['source_rows'], )); return self::SUCCESS; } }