作者 李忠强

更新

... ... @@ -187,7 +187,7 @@ class Goods extends Api
->where('goods_id',$goods_id)
->where('status','normal')
->order('id','desc')
->find();
->find()??[];
if ($goods['comment'])$goods['comment']->getRelation('user')->visible(['id','nickname']);
$this->success('商品详情页评价',$goods);
}
... ...