This commit is contained in:
root
2019-12-10 11:23:14 +08:00
parent e5b79c875b
commit 2a54cd3730
2 changed files with 9 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class SystemCache extends Command
private function setMonthIncome() {
Redis::set(
'getMonthIncome',
'month_income',
Order::where('created_at', '>', strtotime(date('Y-m-1')))
->where('created_at', '>', time())
->where('status', '3')
@ -58,7 +58,7 @@ class SystemCache extends Command
private function setMonthRegisterTotal() {
Redis::set(
'getMonthRegisterTotal',
'month_register_total',
User::where('created_at', '>', strtotime(date('Y-m-1')))
->where('created_at', '>', time())
->count()