|
|
@@ -10,6 +10,7 @@ use app\v1\logic\center\GameLogic;
|
|
|
use plugin\saiadmin\basic\BaseController;
|
|
|
use app\v1\logic\center\GameMainLogic;
|
|
|
use plugin\saiadmin\app\cache\UserInfoCache;
|
|
|
+use plugin\saiadmin\app\logic\system\SystemConfigLogic;
|
|
|
use plugin\saiadmin\app\logic\system\SystemUserLogic;
|
|
|
use plugin\saiadmin\app\model\system\SystemDept;
|
|
|
use support\Request;
|
|
|
@@ -21,6 +22,12 @@ use support\think\Db;
|
|
|
*/
|
|
|
class CommonController extends BaseController
|
|
|
{
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 不需要登录的方法
|
|
|
+ */
|
|
|
+ protected array $noNeedLogin = ['getSystemConfig'];
|
|
|
+
|
|
|
protected $gameMainLogic;
|
|
|
protected $gameLogic;
|
|
|
protected $mediaListLogic;
|
|
|
@@ -29,6 +36,7 @@ class CommonController extends BaseController
|
|
|
protected $gamePackageLogic;
|
|
|
protected $agentSiteLogic;
|
|
|
protected $gameGroupLogic;
|
|
|
+ protected $systemConfigLogic;
|
|
|
|
|
|
/**
|
|
|
* 构造函数
|
|
|
@@ -44,6 +52,7 @@ class CommonController extends BaseController
|
|
|
$this->gamePackageLogic = new GamePackageLogic();
|
|
|
$this->agentSiteLogic = new AgentSiteLogic();
|
|
|
$this->gameGroupLogic = new GameGroupLogic();
|
|
|
+ $this->systemConfigLogic = new SystemConfigLogic();
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -292,5 +301,32 @@ class CommonController extends BaseController
|
|
|
$data = $this->gameGroupLogic->getGameListOptionsByDeptId($where);
|
|
|
return $this->success($data);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取产品ID, 获取游戏列表
|
|
|
+ */
|
|
|
+ public function getAllGameOptions(): Response
|
|
|
+ {
|
|
|
+ $data = $this->gameLogic->getAllGameOptions();
|
|
|
+ return $this->success($data);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取系统配置
|
|
|
+ * group_code: 配置组标识
|
|
|
+ * key: 配置key
|
|
|
+ * @param Request $request
|
|
|
+ * @return Response
|
|
|
+ */
|
|
|
+ public function getSystemConfig(Request $request): Response
|
|
|
+ {
|
|
|
+ $where = $request->more([
|
|
|
+ ['group_code', ''],
|
|
|
+ ['key', '']
|
|
|
+ ]);
|
|
|
+ $data = $this->systemConfigLogic->getSystemConfig($where);
|
|
|
+ return $this->success($data);
|
|
|
+ }
|
|
|
|
|
|
}
|