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
422 B

1 year ago
5 months ago
1 year ago
5 months ago
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 '';
  10. }
  11. public function download()
  12. {
  13. if(config_get('download_page') == '0' && !request()->islogin){
  14. return 'need login';
  15. }
  16. View::assign('siteurl', request()->root(true));
  17. return view();
  18. }
  19. }