diff --git a/app/index/controller/Attachment.php b/app/index/controller/Attachment.php index af288e40..5fe82545 100644 --- a/app/index/controller/Attachment.php +++ b/app/index/controller/Attachment.php @@ -111,7 +111,7 @@ class Attachment extends Common ]) ->withSearch(['name'], ['name' => $param['keyword']??null]) ->language($this->lang_id) - ->category($param['id']??null) + ->category($param['id']??$video_categorys[0]['id']??null) ->order(['sort' => 'asc', 'id' => 'desc']) ->paginate([ 'list_rows' => $param['size'], diff --git a/app/index/view/attachment/video.html b/app/index/view/attachment/video.html index 8f6a0239..02302065 100644 --- a/app/index/view/attachment/video.html +++ b/app/index/view/attachment/video.html @@ -36,8 +36,8 @@ {notempty name="video_categorys"}