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));