作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

1

... ... @@ -40,7 +40,7 @@ class GoodsAppraise extends Model
{
$list = self::with(['user'])
->where($where)
->order(['appraise_star'=>'desc'])
->order(['star'=>'desc'])
->paginate($rows,false,['page'=>$page])
->each(function($v){
$v->getRelation('user')->visible(['nickname','avatar']);
... ...