|
@@ -6,6 +6,7 @@ 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;
|
|
|
use app\v1\logic\center\GameMainLogic;
|
|
use app\v1\logic\center\GameMainLogic;
|
|
|
|
|
+use app\v1\logic\gameLog\GamePackageLogic;
|
|
|
use plugin\saiadmin\app\logic\system\SystemUserLogic;
|
|
use plugin\saiadmin\app\logic\system\SystemUserLogic;
|
|
|
use support\Request;
|
|
use support\Request;
|
|
|
use support\Response;
|
|
use support\Response;
|
|
@@ -20,6 +21,7 @@ class CommonController extends BaseController
|
|
|
protected $mediaListLogic;
|
|
protected $mediaListLogic;
|
|
|
protected $agentListLogic;
|
|
protected $agentListLogic;
|
|
|
protected $systemUserLogic;
|
|
protected $systemUserLogic;
|
|
|
|
|
+ protected $gamePackageLogic;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 构造函数
|
|
* 构造函数
|
|
@@ -32,6 +34,7 @@ class CommonController extends BaseController
|
|
|
$this->mediaListLogic = new MediaListLogic();
|
|
$this->mediaListLogic = new MediaListLogic();
|
|
|
$this->agentListLogic = new AgentListLogic();
|
|
$this->agentListLogic = new AgentListLogic();
|
|
|
$this->systemUserLogic = new SystemUserLogic();
|
|
$this->systemUserLogic = new SystemUserLogic();
|
|
|
|
|
+ $this->gamePackageLogic = new GamePackageLogic();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -75,12 +78,7 @@ class CommonController extends BaseController
|
|
|
{
|
|
{
|
|
|
$data = $this->mediaListLogic->getMediaOptions();
|
|
$data = $this->mediaListLogic->getMediaOptions();
|
|
|
$data = $data->toArray();
|
|
$data = $data->toArray();
|
|
|
- $data = array_map(function ($item) {
|
|
|
|
|
- return [
|
|
|
|
|
- 'label' => $item['name'].'【' . $item['id'] . '】',
|
|
|
|
|
- 'value' => $item['id'],
|
|
|
|
|
- ];
|
|
|
|
|
- }, $data);
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
return $this->success($data);
|
|
return $this->success($data);
|
|
|
}
|
|
}
|
|
@@ -102,4 +100,13 @@ class CommonController extends BaseController
|
|
|
$data = $this->systemUserLogic->field('id as value, username as label')->select()->toArray();
|
|
$data = $this->systemUserLogic->field('id as value, username as label')->select()->toArray();
|
|
|
return $this->success($data);
|
|
return $this->success($data);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 获取母包列表Options
|
|
|
|
|
+ */
|
|
|
|
|
+ public function getPackageOptions(Request $request): Response
|
|
|
|
|
+ {
|
|
|
|
|
+ $data = $this->gamePackageLogic->getPackageOptions();
|
|
|
|
|
+ return $this->success($data);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|