细节优化

This commit is contained in:
Devil
2021-04-07 14:17:35 +08:00
parent f26d24cf11
commit 98aa293e95
40 changed files with 1612 additions and 806 deletions

View File

@ -85,8 +85,8 @@ class StatisticalService
self::$seven_time_end = time();
// 上月
self::$last_month_time_start = strtotime(date('Y-m-01 00:00:00', strtotime('-1 month')));
self::$last_month_time_end = strtotime(date('Y-m-t 23:59:59', strtotime('-1 month')));
self::$last_month_time_start = strtotime(date('Y-m-01 00:00:00', strtotime('-1 month', strtotime(date('Y-m', time())))));
self::$last_month_time_end = strtotime(date('Y-m-t 23:59:59', strtotime('-1 month', strtotime(date('Y-m', time())))));
// 当月
self::$same_month_time_start = strtotime(date('Y-m-01 00:00:00'));