|
|
@@ -152,24 +152,6 @@ class GameLogic extends BaseLogic
|
|
|
|
|
|
return $result;
|
|
|
}
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取所有的游戏数据
|
|
|
- */
|
|
|
- public function getAllGameData($where)
|
|
|
- {
|
|
|
- $auth_game_list = request()->header('auth_game_list');
|
|
|
- $query = $this->search($where);
|
|
|
- if(!empty($auth_game_list)) {
|
|
|
- $authGameList = explode(',', $auth_game_list);
|
|
|
- $query->where('id', 'in', $authGameList);
|
|
|
- }
|
|
|
- $query->where('status', 1);
|
|
|
- $query->order('sort', 'desc');
|
|
|
- $gameList = $this->getList($query);
|
|
|
-
|
|
|
- return $this->gameMainTree($gameList);
|
|
|
- }
|
|
|
|
|
|
public function gameMainTree($gameList): array
|
|
|
{
|
|
|
@@ -253,25 +235,6 @@ class GameLogic extends BaseLogic
|
|
|
return array_values($groupedGames);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- /**
|
|
|
- * 根据部门ID获取游戏列表
|
|
|
- * @param array $where
|
|
|
- * @return array
|
|
|
- */
|
|
|
- public function getGameListByDeptId($dept_id)
|
|
|
-
|
|
|
- {
|
|
|
- $game_ids = $this->systemDeptLogic->getGameIdsByDeptId($dept_id);
|
|
|
-
|
|
|
- if($game_ids==='*'){
|
|
|
- $gameList = $this->model->where('status', 1)->order('sort', 'desc')->select()->toArray();
|
|
|
- }else{
|
|
|
- $gameList = $this->model->where('id', 'in', $game_ids)->where('status', 1)->order('sort', 'desc')->select()->toArray();
|
|
|
- }
|
|
|
- return $this->gameMainTree($gameList);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 设置部门游戏权限
|
|
|
* @param array $where
|