This commit is contained in:
root
2020-01-11 13:36:52 +08:00
parent 35f954cd84
commit f7fdfadfb0
87 changed files with 1241 additions and 947 deletions

View File

@ -47,7 +47,8 @@ class V2boardCache extends Command
$this->setMonthRegisterTotal();
}
private function setMonthIncome() {
private function setMonthIncome()
{
Cache::put(
'month_income',
Order::where('created_at', '>=', strtotime(date('Y-m-1')))
@ -57,7 +58,8 @@ class V2boardCache extends Command
);
}
private function setMonthRegisterTotal() {
private function setMonthRegisterTotal()
{
Cache::put(
'month_register_total',
User::where('created_at', '>=', strtotime(date('Y-m-1')))