mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update
This commit is contained in:
parent
4edb3dc94c
commit
bcdcb2e6a6
@ -48,8 +48,8 @@ class SystemCache extends Command
|
|||||||
private function setMonthIncome() {
|
private function setMonthIncome() {
|
||||||
Redis::set(
|
Redis::set(
|
||||||
'month_income',
|
'month_income',
|
||||||
Order::where('created_at', '>', strtotime(date('Y-m-1')))
|
Order::where('created_at', '>=', strtotime(date('Y-m-1')))
|
||||||
->where('created_at', '>', time())
|
->where('created_at', '<', time())
|
||||||
->where('status', '3')
|
->where('status', '3')
|
||||||
->where('callback_no', '!=', NULL)
|
->where('callback_no', '!=', NULL)
|
||||||
->sum('total_amount')
|
->sum('total_amount')
|
||||||
@ -59,8 +59,8 @@ class SystemCache extends Command
|
|||||||
private function setMonthRegisterTotal() {
|
private function setMonthRegisterTotal() {
|
||||||
Redis::set(
|
Redis::set(
|
||||||
'month_register_total',
|
'month_register_total',
|
||||||
User::where('created_at', '>', strtotime(date('Y-m-1')))
|
User::where('created_at', '>=', strtotime(date('Y-m-1')))
|
||||||
->where('created_at', '>', time())
|
->where('created_at', '<', time())
|
||||||
->count()
|
->count()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user