Index.php 714 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace app\index\controller;
  3. use app\common\controller\Frontend;
  4. class Index extends Frontend
  5. {
  6. protected $noNeedLogin = '*';
  7. protected $noNeedRight = '*';
  8. protected $layout = '';
  9. public function index()
  10. {
  11. return $this->view->fetch();
  12. }
  13. /**
  14. * 获取网站配置信息
  15. */
  16. public function info() {
  17. $params = $this->request->request("params"); //内容
  18. $this->view->assign('info',config("site.".$params));
  19. return $this->view->fetch();
  20. }
  21. //邀请页面
  22. public function invite() {
  23. $code = input('code', '', 'trim');
  24. $this->view->assign('code', $code);
  25. return $this->view->fetch();
  26. }
  27. }