refactor: 调整视频输出
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user