Ken 2 miesięcy temu
rodzic
commit
e108f0967a
1 zmienionych plików z 13 dodań i 13 usunięć
  1. 13 13
      app/Http/Controllers/api/Issue.php

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

@@ -203,21 +203,21 @@ class Issue extends BaseController
     {
         $type = [1, 2, 3, 4];
         $list = [];
-        $list[] = Cao::whereIn('id', $type)->get();
+        $list['dxds'] = Cao::whereIn('id', $type)->get();
         $type = [5, 6, 7, 8];
-        $list[] = Cao::whereIn('id', $type)->get();
+        $list['zh'] = Cao::whereIn('id', $type)->get();
         $type = [9, 10];
-        $list[] = Cao::whereIn('id', $type)->get();
-        $list[] = [
+        $list['jz'] = Cao::whereIn('id', $type)->get();
+        $list['hb'] = [
             ['field' => '2.8回本', 'val' => 0],
             ['field' => '3.2回本', 'val' => 0],
         ];
         $type = [11, 12, 13];
-        $list[] = Cao::whereIn('id', $type)->get();
-        $list[] = Cao::where('id', '>=', 14)
+        $list['bsd'] = Cao::whereIn('id', $type)->get();
+        $list['ddsz'] = Cao::where('id', '>=', 14)
             ->where('id', '<=', 41)
             ->get();
-        $list[] = [
+        $list['tslx'] = [
             ['field' => '龙', 'val' => 0],
             ['field' => '虎', 'val' => 0],
             ['field' => '合', 'val' => 0],
@@ -225,16 +225,16 @@ class Issue extends BaseController
             ['field' => '鸭', 'val' => 0],
             ['field' => '狗', 'val' => 0],
         ];
-        $list[] = [
+        $list['zbtj'] = [
             ['field' => '中', 'val' => 0],
             ['field' => '边', 'val' => 0],
             ['field' => '大边', 'val' => 0],
             ['field' => '小边', 'val' => 0],
         ];
-        $list[] = Cao::where('id', '>=', 42)
+        $list['wei_shu'] = Cao::where('id', '>=', 42)
             ->where('id', '<=', 49)
             ->get();
-        $list[] = [
+        $list['san_jun'] = [
             ['field' => '三军0点', 'val' => 0],
             ['field' => '三军1点', 'val' => 0],
             ['field' => '三军2点', 'val' => 0],
@@ -246,13 +246,13 @@ class Issue extends BaseController
             ['field' => '三军8点', 'val' => 0],
             ['field' => '三军9点', 'val' => 0],
         ];
-        $list[] = Cao::where('id', '>=', 50)
+        $list['qu_a'] = Cao::where('id', '>=', 50)
             ->where('id', '<=', 63)
             ->get();
-        $list[] = Cao::where('id', '>=', 64)
+        $list["qu_b"] = Cao::where('id', '>=', 64)
             ->where('id', '<=', 77)
             ->get();
-        $list[] = Cao::where('id', '>=', 78)
+        $list["qu_c"] = Cao::where('id', '>=', 78)
             ->where('id', '<=', 91)
             ->get();