pull/1/head
wangmingchuan321@qq.com 10 months ago
parent c347eb99ed
commit 30975272d1
  1. 5
      app/common/model/Goods.php

@ -215,11 +215,12 @@ class Goods extends BaseModel
$sort['goods_sales'] = 'desc'; $sort['goods_sales'] = 'desc';
} }
} }
$field = $this->getAliasFields($this->name, ['content']);
$field[] = 'selling_point';
// 执行查询 // 执行查询
$list = $query->with(['images.file']) $list = $query->with(['images.file'])
->alias($this->name) ->alias($this->name)
->field($this->getAliasFields($this->name, ['content'])) ->field($field)
->where('is_delete', '=', 0) ->where('is_delete', '=', 0)
->order($sort) ->order($sort)
->paginate($listRows); ->paginate($listRows);

Loading…
Cancel
Save