Ken 1 month ago
parent
commit
58eb1303d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/api/Issue.php

+ 1 - 1
app/Http/Controllers/api/Issue.php

@@ -303,7 +303,7 @@ class Issue extends BaseController
             ->where('id', '<=', 91)
             ->get();
 
-        $count = \App\Models\Issue::count();
+        $count =  Cao::whereIn('id', [1,2])->sum('val');
         $data = [
             'total' => $count,
             'list' => $list