|
|
|
@ -456,12 +456,21 @@ Class ListController extends Controller {
@@ -456,12 +456,21 @@ Class ListController extends Controller {
|
|
|
|
|
$htmlCateReadme = ''; //当前目录下的Readme.md 内容 |
|
|
|
|
$copyright = ''; |
|
|
|
|
|
|
|
|
|
//获取根目录下的readme |
|
|
|
|
$cacheKey = $this->getCacheKey('root', 'readme', $maxScanDeep); |
|
|
|
|
$readmeFile = Common::getCacheFromFile($cacheKey, $expireSeconds); |
|
|
|
|
if (!empty($readmeFile)) { |
|
|
|
|
$htmlReadme = $readmeFile['htmlReadme']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!empty($readmeFile['copyright'])) { |
|
|
|
|
$copyright = $readmeFile['copyright']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$cacheKey = $this->getCacheKey('root', 'mp3', $maxScanDeep); |
|
|
|
|
$mp3File = Common::getCacheFromFile($cacheKey, $expireSeconds); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//翻页支持 |
|
|
|
|
$page = $this->get('page', 1); |
|
|
|
|
$pageSize = $this->get('limit', FSC::$app['config']['default_page_size']); |
|
|
|
|