|
@@ -2,6 +2,7 @@
|
|
|
namespace app\v1\controller;
|
|
namespace app\v1\controller;
|
|
|
|
|
|
|
|
use app\v1\logic\advert\AgentListLogic;
|
|
use app\v1\logic\advert\AgentListLogic;
|
|
|
|
|
+use app\v1\logic\advert\AgentSiteLogic;
|
|
|
use app\v1\logic\advert\MediaListLogic;
|
|
use app\v1\logic\advert\MediaListLogic;
|
|
|
use app\v1\logic\center\GameLogic;
|
|
use app\v1\logic\center\GameLogic;
|
|
|
use plugin\saiadmin\basic\BaseController;
|
|
use plugin\saiadmin\basic\BaseController;
|
|
@@ -22,6 +23,7 @@ class CommonController extends BaseController
|
|
|
protected $agentListLogic;
|
|
protected $agentListLogic;
|
|
|
protected $systemUserLogic;
|
|
protected $systemUserLogic;
|
|
|
protected $gamePackageLogic;
|
|
protected $gamePackageLogic;
|
|
|
|
|
+ protected $agentSiteLogic;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 构造函数
|
|
* 构造函数
|
|
@@ -35,6 +37,7 @@ class CommonController extends BaseController
|
|
|
$this->agentListLogic = new AgentListLogic();
|
|
$this->agentListLogic = new AgentListLogic();
|
|
|
$this->systemUserLogic = new SystemUserLogic();
|
|
$this->systemUserLogic = new SystemUserLogic();
|
|
|
$this->gamePackageLogic = new GamePackageLogic();
|
|
$this->gamePackageLogic = new GamePackageLogic();
|
|
|
|
|
+ $this->agentSiteLogic = new AgentSiteLogic();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -48,7 +51,7 @@ class CommonController extends BaseController
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 获取子游戏options列表
|
|
|
|
|
|
|
+ * 获取子游戏options列表(有权限)
|
|
|
* @return Response
|
|
* @return Response
|
|
|
*/
|
|
*/
|
|
|
public function getGameOptions(Request $request): Response
|
|
public function getGameOptions(Request $request): Response
|
|
@@ -60,7 +63,18 @@ class CommonController extends BaseController
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 获取树形游戏options列表
|
|
|
|
|
|
|
+ * 获取子游戏options列表(无权限)
|
|
|
|
|
+ * @return Response
|
|
|
|
|
+ */
|
|
|
|
|
+ public function getGameOptionsNoAuth(Request $request): Response
|
|
|
|
|
+ {
|
|
|
|
|
+ $where = $request->get();
|
|
|
|
|
+ $data = $this->gameLogic->getGameOptionsNoAuth($where);
|
|
|
|
|
+ return $this->success($data);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取树形游戏options列表(有权限)
|
|
|
* @return Response
|
|
* @return Response
|
|
|
*/
|
|
*/
|
|
|
public function getTreeGameOptions(Request $request): Response
|
|
public function getTreeGameOptions(Request $request): Response
|
|
@@ -69,6 +83,7 @@ class CommonController extends BaseController
|
|
|
$data = $this->gameLogic->getGameListByPermission($where);
|
|
$data = $this->gameLogic->getGameListByPermission($where);
|
|
|
return $this->success($data);
|
|
return $this->success($data);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -109,4 +124,13 @@ class CommonController extends BaseController
|
|
|
$data = $this->gamePackageLogic->getPackageOptions();
|
|
$data = $this->gamePackageLogic->getPackageOptions();
|
|
|
return $this->success($data);
|
|
return $this->success($data);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取广告位options
|
|
|
|
|
+ */
|
|
|
|
|
+ public function getAgentSiteOptions(Request $request): Response
|
|
|
|
|
+ {
|
|
|
|
|
+ $data = $this->agentSiteLogic->getAgentSiteOptions();
|
|
|
|
|
+ return $this->success($data);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|