From c05dff540e79af97592ec384faa379c6be2c8a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=9D=99?= Date: Wed, 9 Mar 2022 10:46:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=BF=9B=E8=B4=A7=E4=B8=9A?= =?UTF-8?q?=E7=BB=A9=E7=BC=93=E5=AD=98=E6=9C=89=E6=95=88=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Actions/Dealer/CalculatePurchaseAmountOfCurrentPeriod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Actions/Dealer/CalculatePurchaseAmountOfCurrentPeriod.php b/app/Actions/Dealer/CalculatePurchaseAmountOfCurrentPeriod.php index 9b132647..61f071db 100644 --- a/app/Actions/Dealer/CalculatePurchaseAmountOfCurrentPeriod.php +++ b/app/Actions/Dealer/CalculatePurchaseAmountOfCurrentPeriod.php @@ -31,7 +31,7 @@ class CalculatePurchaseAmountOfCurrentPeriod $startAt = $tz->copy()->subMonthNoOverflow()->setDay(20)->startOfDay(); } - return Cache::remember($this->prefix($startAt).':'.$dealer->user_id, 3600, function () use ($dealer, $startAt) { + return Cache::remember($this->prefix($startAt).':'.$dealer->user_id, 600, function () use ($dealer, $startAt) { return bcdiv($this->calculatePurchaseAmount->handle($dealer, $startAt), '1', 2); }); }