<?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();
|
}
|
|
/**
|
* 隐私协议
|
*
|
* @return void
|
*/
|
public function privacy_agreement()
|
{
|
//'userAgreement' => config('site.userAgreement'),
|
$privacyAgreement = config('site.privacyAgreement');
|
$this->assign('privacyAgreement',$privacyAgreement);
|
return $this->view->fetch();
|
}
|
|
/**
|
* 用户协议
|
*
|
* @return void
|
*/
|
public function user_agreement()
|
{
|
$userAgreement = config('site.userAgreement');
|
$this->assign('userAgreement',$userAgreement);
|
return $this->view->fetch();
|
}
|
|
}
|