|
|
@@ -27,6 +27,7 @@ class GameLogic extends BaseLogic
|
|
|
$this->gameMainLogic = new GameMainLogic();
|
|
|
$this->systemDeptLogic = new SystemDeptLogic();
|
|
|
$this->gameGroupLogic = new GameGroupLogic();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -36,17 +37,17 @@ class GameLogic extends BaseLogic
|
|
|
*/
|
|
|
public function getIndex($where)
|
|
|
{
|
|
|
- // $authGameList = request()->header('auth_game_list');
|
|
|
$userAuthCache = new UserInfoCache(getCurrentInfo()['id']);
|
|
|
$userInfo = $userAuthCache->getUserInfo();
|
|
|
|
|
|
$authGameList = $userInfo['deptList']['game_list'];
|
|
|
+
|
|
|
$query = $this->search($where);
|
|
|
if(!empty($authGameList) && $authGameList!='*') {
|
|
|
$authGameList = explode(',', $authGameList);
|
|
|
$query->where('id', 'in', $authGameList);
|
|
|
}
|
|
|
- $query->order('sort', 'desc');
|
|
|
+ $query->order('id', 'asc');
|
|
|
|
|
|
$data = $this->getList($query);
|
|
|
|