refactor: 调整视频输出

This commit is contained in:
2025-04-16 14:03:21 +08:00
parent 37f815ccfa
commit 4d8244c6d0
3 changed files with 19 additions and 10 deletions

View File

@@ -120,6 +120,10 @@ class Attachment extends Common
'id' => $param['id']??null
]
]);
if (!$videos->isEmpty()) {
$videos->setCollection($videos->getCollection()->chunk(2));
}
View::assign('videos', $videos);
View::assign('page', $videos->render());