setter
parent
54ed63a287
commit
0542ef85a6
|
@ -214,6 +214,8 @@ class SpuRepository extends Repository
|
|||
$activityText = Spu::activityTextList();
|
||||
|
||||
$list['list'] = $list['list']->each(function ($item) use ($activityText) {
|
||||
$spuSkuList = $this->spuSkuList($item->id);
|
||||
$item->skuId = $spuSkuList[0]["id"] ?? 0;
|
||||
$item->tag = $activityText[$item->activity_type] ?? '';
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue