Poster.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Niucloud-admin 企业快速开发的saas管理平台
  4. // +----------------------------------------------------------------------
  5. // | 官方网址:https://www.niucloud.com
  6. // +----------------------------------------------------------------------
  7. // | niucloud团队 版权所有 开源版本可自由商用
  8. // +----------------------------------------------------------------------
  9. // | Author: Niucloud Team
  10. // +----------------------------------------------------------------------
  11. namespace app\api\controller\poster;
  12. use core\base\BaseApiController;
  13. /**
  14. * 海报
  15. */
  16. class Poster extends BaseApiController
  17. {
  18. /**
  19. * 获取海报
  20. * @return void|null
  21. */
  22. public function poster()
  23. {
  24. $data = $this->request->params([
  25. [ 'id', 0 ], // 海报id
  26. [ 'type', '' ], // 海报类型
  27. [ 'param', [] ], // 数据参数
  28. ]);
  29. $data[ 'channel' ] = $this->request->getChannel();
  30. return success(data: poster($this->request->siteId(), ...$data));
  31. }
  32. }