This commit is contained in:
toom1996
2025-07-17 16:43:41 +08:00
parent f0eed20b0a
commit eac64e779a

View File

@ -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();
}
}