Index.php 753 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\api\controller;
  3. use think\facade\Config;
  4. use app\common\controller\Frontend;
  5. class Index extends Frontend
  6. {
  7. protected $noNeedLogin = ['index'];
  8. public function initialize()
  9. {
  10. parent::initialize();
  11. }
  12. public function index()
  13. {
  14. $this->success('', [
  15. 'site' => [
  16. 'siteName' => get_sys_config('site_name'),
  17. 'recordNumber' => get_sys_config('record_number'),
  18. 'version' => get_sys_config('version'),
  19. 'cdnUrl' => full_url(),
  20. 'upload' => get_upload_config(),
  21. ],
  22. 'openMemberCenter' => Config::get('buildadmin.open_member_center'),
  23. ]);
  24. }
  25. }