diff --git a/app/Http/Controllers/User/StatController.php b/app/Http/Controllers/User/StatController.php index 580d0eb2..7e737b36 100644 --- a/app/Http/Controllers/User/StatController.php +++ b/app/Http/Controllers/User/StatController.php @@ -12,8 +12,8 @@ class StatController extends Controller public function getTrafficLog(Request $request) { $builder = StatUser::select([ - DB::raw('sum(u) as u'), - DB::raw('sum(d) as d'), + 'u', + 'd', 'record_at', 'user_id', 'server_rate'