123456789101112131415161718192021222324252627282930313233 |
- <?php
- declare(strict_types=1);
- namespace app\mobile\controller;
- use think\facade\View;
- class Open {
- /**
- * 首页
- */
- public function index()
- {
- return View::fetch();
- }
- /**
- * 隐私政策
- */
- public function privacyState()
- {
- $type = input('type','android');
- $view = $type=='ios' ? 'iosprivacy' : 'androidprivacy';
- return View::fetch($view);
- }
- /**
- * 用户协议
- */
- public function userAgreement()
- {
- $type = input('type','ios');
- $view = $type=='ios' ? 'iosagreement' : 'androidagreement';
- return View::fetch($view);
- }
- }
|