From 47be6912ebed156e23bfda2b570a60cdf2587cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Sat, 15 Jan 2022 15:50:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AE=A1=E7=90=86=E6=B4=A5?= =?UTF-8?q?=E8=B4=B4=E7=BB=93=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/Dealer/ManageSubsidySettleCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/Dealer/ManageSubsidySettleCommand.php b/app/Console/Commands/Dealer/ManageSubsidySettleCommand.php index 75f0821a..315d5fd1 100644 --- a/app/Console/Commands/Dealer/ManageSubsidySettleCommand.php +++ b/app/Console/Commands/Dealer/ManageSubsidySettleCommand.php @@ -76,7 +76,7 @@ class ManageSubsidySettleCommand extends Command } $this->info("{$head}数据写入中..."); - $this->settle($startAt, $endAt); + $this->settle($startAt, $endAt, 500); $this->info("{$head}写入成功, 总耗时: ".$this->formatDuration($tz->diffInMilliseconds(now(), false))); $this->info("{$head}------------[结束]管理津贴结算------------".PHP_EOL); @@ -164,7 +164,7 @@ class ManageSubsidySettleCommand extends Command */ protected function cacheKey(Carbon $startAt, Carbon $endAt) { - $startAt->format('Ymd').'_'.$endAt->format('Ymd').'_dealer_manage_subsidy'; + return $startAt->format('Ymd').'_'.$endAt->format('Ymd').'_dealer_manage_subsidy'; } /**