import( (string) $this->argument('file'), (string) $this->option('scope'), ! $this->option('keep-existing-months'), ); } catch (Throwable $exception) { report($exception); $this->error($exception->getMessage()); return self::FAILURE; } $this->info(sprintf( '发票台账导入完成:%d 个流程、%d 张发票、开票金额 %.2f 元;月份 %s。', $result['flows'], $result['invoices'], $result['invoice_total'], implode(',', $result['months']), )); $this->line(sprintf( '耗时 %.2f 秒;PHP 峰值内存 %.1f MiB。', microtime(true) - $startedAt, memory_get_peak_usage(true) / 1024 / 1024, )); return self::SUCCESS; } }