feat: 添加新的API功能;修改ProductLists.php文件,在查询产品列表时增加对每个产品添加标签的功能,返回带有标签的产品列表。
This commit is contained in:
parent
9babb4f430
commit
a269e4c0dd
@ -96,7 +96,11 @@ class ProductLists extends BaseApiDataLists implements ListsSearchInterface, Lis
|
|||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
->order($order)
|
->order($order)
|
||||||
// ->page($this->limitOffset +1,$this->limitLength)
|
// ->page($this->limitOffset +1,$this->limitLength)
|
||||||
->select()->toArray();
|
->select()->each(function ($item) {
|
||||||
|
$item['tag']=' 赠10%品牌礼品券 ';
|
||||||
|
return $item;
|
||||||
|
})
|
||||||
|
->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user