From 983b752f20718b2490db6b5fc88d8f0eb15cff04 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Tue, 29 Mar 2022 15:00:05 +0800 Subject: [PATCH] update: optimization stat user --- app/Http/Controllers/User/StatController.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Http/Controllers/User/StatController.php b/app/Http/Controllers/User/StatController.php index 64dbb892..580d0eb2 100644 --- a/app/Http/Controllers/User/StatController.php +++ b/app/Http/Controllers/User/StatController.php @@ -20,7 +20,6 @@ class StatController extends Controller ]) ->where('user_id', $request->session()->get('id')) ->where('record_at', '>=', strtotime(date('Y-m-1'))) - ->groupBy('record_at', 'user_id', 'server_rate') ->orderBy('record_at', 'DESC'); return response([ 'data' => $builder->get()