Commit 4b88b534 authored by 刘小敏's avatar 刘小敏

AI试戴商品列表接口优化

parent 9b58ffed
......@@ -275,9 +275,7 @@ class GoodsService
$this->md5s[] = 'paginate';
// 默认排序
$this->with('skus')->order();
$goods = $this->query->field('id,title,subtitle,image as sku_name,image as sku_image')
$goods = $this->query->where('status', 'up')->field('id,title,subtitle,image')
->cache($this->getCacheKey($is_cache), (200 + mt_rand(0, 100)))
->paginate(request()->param('list_rows', 10))
->toArray();
......
......@@ -126,7 +126,6 @@ class Goods extends Common
return $query->whereIn('status', ['up', 'hidden']);
}
public function getDispatchTypeTextAttr($value, $data)
{
$value = $value ?: ($data['dispatch_type'] ?? null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment