master
wangxinglong 2022-05-27 14:04:09 +08:00
parent 54ed63a287
commit 0542ef85a6
1 changed files with 2 additions and 0 deletions

View File

@ -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] ?? '';
});