You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
446 B

1 year ago
  1. <?php
  2. namespace app\controller;
  3. use app\BaseController;
  4. use think\facade\View;
  5. class Index extends BaseController
  6. {
  7. public function index()
  8. {
  9. return 'Server is ok';
  10. }
  11. public function download()
  12. {
  13. if(config_get('download_page') == '0' && !request()->islogin){
  14. return redirect('/admin/login');
  15. }
  16. View::assign('siteurl', request()->root(true));
  17. return view();
  18. }
  19. }