1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace app\index\controller;
- use app\common\controller\Frontend;
- class Index extends Frontend
- {
- protected $noNeedLogin = '*';
- protected $noNeedRight = '*';
- protected $layout = '';
- public function index()
- {
- return $this->view->fetch();
- }
- /**
- * 获取网站配置信息
- */
- public function info() {
- $params = $this->request->request("params"); //内容
- $this->view->assign('info',config("site.".$params));
- return $this->view->fetch();
- }
- //邀请页面
- public function invite() {
- $code = input('code', '', 'trim');
- $this->view->assign('code', $code);
- return $this->view->fetch();
- }
- }
|