feat : sts

This commit is contained in:
2025-04-17 16:02:43 +08:00
parent 9183e12e47
commit 84d49f15b8
2 changed files with 7 additions and 3 deletions

View File

@@ -115,6 +115,7 @@ class OptionalListService extends BaseService
$res[$item['category_id']] = [
'category_name' => $categoryList[$item['category_id']]['name'] ?? '',
'category_image' => $categoryImages[$item['category_id']]['url'] ?? '',
'category_type' => GoodCode::SPU_TYPE_OPTIONAL,
'spu_list' => []
];
}
@@ -126,7 +127,8 @@ class OptionalListService extends BaseService
array_unshift($res,[
'category_name' => $this->configCache->getConfigValueByKey(ConfigCode::ONE_CLICK_SHOPPING_FOR_CATEGORY_NAME),
'category_image' => $this->getOssObjectById((int)$this->configCache->getConfigValueByKey(ConfigCode::ONE_CLICK_SHOPPING_FOR_CATEGORY_IMAGE)),
'spu_list' => [$purchaseData]
'category_type' => GoodCode::SPU_TYPE_PURCHASE,
'spu_list' => $purchaseData
]);
}
@@ -134,7 +136,8 @@ class OptionalListService extends BaseService
array_unshift($res,[
'category_name' => $this->configCache->getConfigValueByKey(ConfigCode::SPECIALS_CATEGORY_NAME),
'category_image' => $this->configCache->getConfigValueByKey(ConfigCode::SPECIALS_CATEGORY_IMAGE),
'spu_list' => [$favorable]
'category_type' => GoodCode::SPU_TYPE_FAVORABLE,
'spu_list' => $favorable
]);
}