ith5 hace 3 meses
padre
commit
d909958491
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  1. 2 4
      app/v1/logic/center/GameGroupLogic.php

+ 2 - 4
app/v1/logic/center/GameGroupLogic.php

@@ -34,14 +34,12 @@ class GameGroupLogic extends BaseLogic
         foreach ($gameList as $id => &$name) {
             $name = '[' . $id . ']' . $name;
         }
-        $gameList = array_column($gameList, null, 'id');
-   
         
         foreach ($list['data'] as $key => $value) {
              $gameIds = explode(',', $value['game_list']);
-             foreach ($gameIds as $gameId) {
+             foreach ($gameIds as $i => $gameId) {
                 $list['data'][$key]['children'][] = [
-                    'id' => $gameId,
+                    'hideOperation'=>true,
                     'name' => $gameList[$gameId],
                 ];
              }