From 768b41aa70330ffe022bbd10a9a5c0a70c9cf509 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Wed, 14 May 2025 17:48:58 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E8=A7=86=E9=A2=91=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E9=BB=98=E8=AE=A4=E9=80=89=E4=B8=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/controller/Attachment.php | 2 +- app/index/view/attachment/video.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"}