update: optimization stat user

This commit is contained in:
tokumeikoi 2022-03-29 15:00:05 +08:00
parent af2f6a31da
commit 983b752f20

View File

@ -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()