|
|
@@ -102,13 +102,12 @@ class GameLogic extends BaseLogic
|
|
|
public function getGameListByDeptId($dept_id)
|
|
|
{
|
|
|
$game_ids = $this->systemDeptLogic->getGameListByDeptId($dept_id);
|
|
|
- // if($game_ids==='*'){
|
|
|
- // $game_list = $this->model->where('status', 1)->order('sort', 'desc')->select()->toArray();
|
|
|
- // }else{
|
|
|
- // $game_list = $this->model->where('id', 'in', $game_ids)->where('status', 1)->order('sort', 'desc')->select()->toArray();
|
|
|
- // }
|
|
|
- return $game_ids;
|
|
|
-
|
|
|
+ if($game_ids==='*'){
|
|
|
+ $game_list = $this->model->where('status', 1)->order('sort', 'desc')->select()->toArray();
|
|
|
+ }else{
|
|
|
+ $game_list = $this->model->where('id', 'in', $game_ids)->where('status', 1)->order('sort', 'desc')->select()->toArray();
|
|
|
+ }
|
|
|
+ return $game_list;
|
|
|
}
|
|
|
|
|
|
/**
|