feat : sts
This commit is contained in:
@@ -118,6 +118,7 @@ class OptionalListService extends BaseService
|
|||||||
'category_name' => $categoryList[$item['category_id']]['name'] ?? '',
|
'category_name' => $categoryList[$item['category_id']]['name'] ?? '',
|
||||||
'category_image' => $categoryImages[$item['category_id']]['url'] ?? '',
|
'category_image' => $categoryImages[$item['category_id']]['url'] ?? '',
|
||||||
'category_type' => GoodCode::SPU_TYPE_OPTIONAL,
|
'category_type' => GoodCode::SPU_TYPE_OPTIONAL,
|
||||||
|
'category_id' => $item['category_id'],
|
||||||
'spu_list' => []
|
'spu_list' => []
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -151,6 +152,7 @@ class OptionalListService extends BaseService
|
|||||||
'category_name' => $this->configCache->getConfigValueByKey(ConfigCode::ONE_CLICK_SHOPPING_FOR_CATEGORY_NAME),
|
'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)),
|
'category_image' => $this->getOssObjectById((int)$this->configCache->getConfigValueByKey(ConfigCode::ONE_CLICK_SHOPPING_FOR_CATEGORY_IMAGE)),
|
||||||
'category_type' => GoodCode::SPU_TYPE_PURCHASE,
|
'category_type' => GoodCode::SPU_TYPE_PURCHASE,
|
||||||
|
'category_id' => 99,
|
||||||
'spu_list' => $purchaseData
|
'spu_list' => $purchaseData
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
@@ -164,6 +166,7 @@ class OptionalListService extends BaseService
|
|||||||
'category_name' => $this->configCache->getConfigValueByKey(ConfigCode::SPECIALS_CATEGORY_NAME),
|
'category_name' => $this->configCache->getConfigValueByKey(ConfigCode::SPECIALS_CATEGORY_NAME),
|
||||||
'category_image' => $this->configCache->getConfigValueByKey(ConfigCode::SPECIALS_CATEGORY_IMAGE),
|
'category_image' => $this->configCache->getConfigValueByKey(ConfigCode::SPECIALS_CATEGORY_IMAGE),
|
||||||
'category_type' => GoodCode::SPU_TYPE_FAVORABLE,
|
'category_type' => GoodCode::SPU_TYPE_FAVORABLE,
|
||||||
|
'category_id' => 99,
|
||||||
'spu_list' => $favorable
|
'spu_list' => $favorable
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user