btcloud/app/controller/Index.php

25 lines
422 B
PHP
Raw Normal View History

2023-07-21 05:46:50 -04:00
<?php
namespace app\controller;
use app\BaseController;
use think\facade\View;
class Index extends BaseController
{
public function index()
{
2024-06-01 03:07:31 -04:00
return '';
2023-07-21 05:46:50 -04:00
}
public function download()
{
if(config_get('download_page') == '0' && !request()->islogin){
2024-06-01 03:07:31 -04:00
return 'need login';
2023-07-21 05:46:50 -04:00
}
View::assign('siteurl', request()->root(true));
return view();
}
}