Browse Source

赛前备战

15954078560 2 years ago
parent
commit
4cab094b72
1 changed files with 9 additions and 2 deletions
  1. 9 2
      application/api/controller/Index.php

+ 9 - 2
application/api/controller/Index.php

@@ -1406,7 +1406,11 @@ class Index extends Api
             }
         }
 
-        $this->success('备战区', $list);
+        $game_image = Db::name('game')->where(['id' => $id])->value('image');
+        $return_data['image'] = one_domain_image($game_image);
+        $return_data['list'] = $list;
+
+        $this->success('备战区', $return_data);
     }
 
     //赛前组队区(多v多)
@@ -1451,7 +1455,10 @@ class Index extends Api
             }
         }
 
-        $this->success('备战区', $list);
+        $game_image = Db::name('game')->where(['id' => $id])->value('image');
+        $return_data['image'] = one_domain_image($game_image);
+        $return_data['list'] = $list;
+        $this->success('备战区', $return_data);
     }
 
     //创建队伍