diff --git a/themes/tajian/views/site/myindex.php b/themes/tajian/views/site/myindex.php index ddb1ff2..312833a 100644 --- a/themes/tajian/views/site/myindex.php +++ b/themes/tajian/views/site/myindex.php @@ -49,9 +49,11 @@ $videoExts = array('url'); if (!empty($viewData['tags'])) { //显示tags分类 $tagIndex = 0; foreach($viewData['tags'] as $id => $item) { + $category = $viewData['scanResults'][$item['id']]; + if (!empty($category['files'])) { //一级目录支持,目录下直接存放视频文件 - //输出分类名称 - echo << 更多>>

{$item['name']}

@@ -59,9 +61,7 @@ if (!empty($viewData['tags'])) { //显示tags分类
eof; - $category = $viewData['scanResults'][$item['id']]; - if (!empty($category['files'])) { //一级目录支持,目录下直接存放视频文件 $cate_files = Html::sortFilesByCreateTime($category['files'], 'desc'); //按创建时间排序 foreach($cate_files as $index => $file) {