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';
}
}
$field = $this->getAliasFields($this->name, ['content']);
$field[] = 'selling_point';
// 执行查询
$list = $query->with(['images.file'])
->alias($this->name)
->field($this->getAliasFields($this->name, ['content']))
->field($field)
->where('is_delete', '=', 0)
->order($sort)
->paginate($listRows);

Loading…
Cancel
Save