From ffd2916411d681d2d4b9715d1f96415f37541794 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Tue, 6 Aug 2024 17:41:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=81=94=E8=A1=A8=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E8=A1=A8=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/GoodsCommentLogic.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/logic/GoodsCommentLogic.php b/app/api/logic/GoodsCommentLogic.php index 76819059..dfd5ca5a 100755 --- a/app/api/logic/GoodsCommentLogic.php +++ b/app/api/logic/GoodsCommentLogic.php @@ -99,7 +99,7 @@ class GoodsCommentLogic extends Logic $lists = GoodsComment::alias('gc') ->field('gc.id,gc.goods_comment,gc.create_time,gc.comment,u.avatar,u.nickname,g.name as goods_name,reply,spec_value_str') - ->leftJoin('procurement u', 'u.id=gc.user_id') + ->leftJoin('user u', 'u.id=gc.user_id') ->leftJoin('goods g', 'g.id=gc.goods_id') ->leftJoin('goods_item gi', 'gi.id=gc.item_id') ->where($where) @@ -109,7 +109,7 @@ class GoodsCommentLogic extends Logic ->toArray(); $count = GoodsComment::alias('gc') ->field('gc.goods_comment,gc.create_time,gc.comment,u.avatar,u.nickname,g.name as goods_name') - ->leftJoin('procurement u', 'u.id=gc.user_id') + ->leftJoin('user u', 'u.id=gc.user_id') ->leftJoin('goods g', 'g.id=gc.goods_id') ->where($where) ->count();