Open.php 650 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. declare(strict_types=1);
  3. namespace app\mobile\controller;
  4. use think\facade\View;
  5. class Open {
  6. /**
  7. * 首页
  8. */
  9. public function index()
  10. {
  11. return View::fetch();
  12. }
  13. /**
  14. * 隐私政策
  15. */
  16. public function privacyState()
  17. {
  18. $type = input('type','android');
  19. $view = $type=='ios' ? 'iosprivacy' : 'androidprivacy';
  20. return View::fetch($view);
  21. }
  22. /**
  23. * 用户协议
  24. */
  25. public function userAgreement()
  26. {
  27. $type = input('type','ios');
  28. $view = $type=='ios' ? 'iosagreement' : 'androidagreement';
  29. return View::fetch($view);
  30. }
  31. }