From eac64e779a880f1341283de8a1f35b728b1ef6c8 Mon Sep 17 00:00:00 2001 From: toom1996 Date: Thu, 17 Jul 2025 16:43:41 +0800 Subject: [PATCH] update --- app/Rpc/v1/NewsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Rpc/v1/NewsService.php b/app/Rpc/v1/NewsService.php index 916eecc..68c6a6f 100755 --- a/app/Rpc/v1/NewsService.php +++ b/app/Rpc/v1/NewsService.php @@ -82,6 +82,6 @@ class NewsService extends BaseService ->orderBy('id', 'desc') ->get() ->toArray(); - return $this->getResponse()->setExtra('about', $about)->setExtra('total', round($total / $limit))->setData($value)->setCode(0)->send(); + return $this->getResponse()->setExtra('about', $about)->setExtra('total', ceil($total / $limit))->setData($value)->setCode(0)->send(); } } \ No newline at end of file