6
0
Fork 0

更新进货业绩缓存有效期

release
李静 2022-03-09 10:46:27 +08:00
parent eee6093d80
commit c05dff540e
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class CalculatePurchaseAmountOfCurrentPeriod
$startAt = $tz->copy()->subMonthNoOverflow()->setDay(20)->startOfDay(); $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); return bcdiv($this->calculatePurchaseAmount->handle($dealer, $startAt), '1', 2);
}); });
} }