Ken 1 week ago
parent
commit
6fcae9b133
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/Http/Controllers/admin/ActivityUser.php

+ 1 - 0
app/Http/Controllers/admin/ActivityUser.php

@@ -79,6 +79,7 @@ class ActivityUser extends Controller
             $query = ActivityUserModel::where($where);
             $count = $query->count();
             $list = $query->orderByDesc('status')
+                ->orderByDesc('id')
                 ->forPage($page, $limit)->get()->toArray();
             $result = ['total' => $count, 'data' => $list];
         } catch (ValidationException $e) {