From d9ef24b3fe61ec8f4fd883d197988622b2d2ddfd Mon Sep 17 00:00:00 2001 From: Deepseath Date: Thu, 11 May 2023 16:01:15 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/helper/PageHelper.php.=20=E5=9C=A8?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=99=A8=E6=95=B0=E6=8D=AE=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=AE=8C=E6=AF=95=E5=90=8E=E5=86=8D=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E6=95=B0=E6=8D=AE=E7=9A=84=E8=BD=AC=E4=B9=89=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=9B=A0=E8=BD=AC=E4=B9=89=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=A4=84=E7=90=86=E5=8E=9F=E5=A7=8B=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Deepseath --- src/helper/PageHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper/PageHelper.php b/src/helper/PageHelper.php index 88280353..660860ba 100644 --- a/src/helper/PageHelper.php +++ b/src/helper/PageHelper.php @@ -125,8 +125,8 @@ class PageHelper extends Helper $data = $query->paginate($cfg, static::getCount($query))->toArray(); $result = ['msg' => '', 'code' => 0, 'count' => $data['total'], 'data' => $data['data']]; } - static::xssFilter($result['data']); if (false !== $this->class->callback('_page_filter', $result['data'], $result)) { + static::xssFilter($result['data']); throw new HttpResponseException(json($result)); } else { return $result; -- Gitee