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