This commit is contained in:
邓皓元 2019-04-16 18:21:42 +08:00
parent fa517627c6
commit 7c6238c3e7

View File

@ -78,14 +78,14 @@ class FlowPoolSync extends Command
if (count($settings) === 1) {
$start_at = '2000-01-01 00:00:00';
$end_at = '3000-01-01 23:59:59';
$end_at = '3000-01-31 23:59:59';
} else {
if ($i === 0) {
$start_at = '2000-01-01 00:00:00';
$end_at = $month->copy()->endOfMonth()->format('Y-m-d H:i:s');
} elseif ($i === count($settings) - 1) {
$start_at = $month->copy()->startOfMonth()->format('Y-m-d H:i:s');
$end_at = '3000-01-01 23:59:59';
$end_at = '3000-01-31 23:59:59';
} else {
$start_at = $month->copy()->startOfMonth()->format('Y-m-d H:i:s');
$end_at = $month->copy()->endOfMonth()->format('Y-m-d H:i:s');