api接口
Some checks failed
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled

This commit is contained in:
2025-09-09 13:08:01 +08:00
parent 15954695ad
commit 3673f59eb6

View File

@@ -18,6 +18,7 @@ Route::get('/list', function () {
foreach ($photoAlbum as $album) {
$album->url = \Illuminate\Support\Facades\Storage::url($album->url);
$album->created_at = date('Y-m-d', $album->created_at);
$album->photo_count = count($album['photos']);
// foreach ($album['photos'] as &$photo) {
// $photo->original = \Illuminate\Support\Facades\Storage::url($photo->original);
// $photo->compressed = \Illuminate\Support\Facades\Storage::url($photo->compressed);