From 2afc3ad45b97e3df97827efdd9d16d6dedb3238a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=B8=9C=E4=BA=91?= Date: Thu, 28 Sep 2023 14:59:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(rest):=20=E4=BF=AE=E5=A4=8D=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E8=BF=94=E5=9B=9E=E5=80=BC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李东云 --- src/Traits/RestfulList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/RestfulList.php b/src/Traits/RestfulList.php index e34d450..e05b26f 100644 --- a/src/Traits/RestfulList.php +++ b/src/Traits/RestfulList.php @@ -29,7 +29,7 @@ trait RestfulList $options = []; $result = $this->parseParameters(function ($query, $parsedOptions) use ($callback, &$options) { $options = $parsedOptions; - $callback($query, $parsedOptions); + return $callback($query, $parsedOptions); }); return $this->responseFormatter($options, $result, $filter); }