作者 李忠强

更新

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