From c112313962d88611059c7a6343a1b3b68de402f7 Mon Sep 17 00:00:00 2001 From: Devil Date: Fri, 23 Jul 2021 19:21:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=84=E8=AE=BA=E6=9C=89?= =?UTF-8?q?=E5=93=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/GoodsCommentsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/service/GoodsCommentsService.php b/app/service/GoodsCommentsService.php index 4c42e58d7..3de9daac7 100644 --- a/app/service/GoodsCommentsService.php +++ b/app/service/GoodsCommentsService.php @@ -570,7 +570,7 @@ class GoodsCommentsService ['goods_id', '=', $goods_id], ['rating', '>', 0], ]; - $data = Db::name('GoodsComments')->where($where)->group('rating')->column('count(*) as count, rating', 'rating'); + $data = Db::name('GoodsComments')->where($where)->group('rating')->column('count(*) as count', 'rating'); if(!empty($data)) { $sum = array_sum($data); -- GitLab