...
|
...
|
@@ -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']);
|
...
|
...
|
|