From 15954695ad66c4d40e2dbb57da65885c399af7f9 Mon Sep 17 00:00:00 2001 From: lq Date: Mon, 8 Sep 2025 16:42:44 +0800 Subject: [PATCH] =?UTF-8?q?api=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/api.php b/routes/api.php index c98cf025..1842127d 100644 --- a/routes/api.php +++ b/routes/api.php @@ -27,7 +27,7 @@ Route::get('/list', function () { // exit(json_encode($photoAlbum)); return json_encode([ 'code' => 0, - 'data' => $photoAlbum, + 'result' => $photoAlbum, 'msg' => 'success', ]); }); @@ -48,7 +48,7 @@ Route::get('/detail', function () { return json_encode([ 'code' => 0, - 'data' => $photoAlbum, + 'result' => $photoAlbum, 'msg' => 'success', ]); // exit(json_encode($photoAlbum));