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