feat : sts
This commit is contained in:
@@ -17,11 +17,12 @@ class GoodCode
|
||||
const int SKU_IS_DELETE = 2;
|
||||
|
||||
/**
|
||||
* @var int 1=自选 2=套餐 3=特惠(列表)
|
||||
* @var int 1=自选 2=套餐 3=特惠(列表) 5=选购
|
||||
*/
|
||||
CONST INT SPU_TYPE_OPTIONAL = 1;
|
||||
CONST INT SPU_TYPE_MEAL = 2;
|
||||
CONST INT SPU_TYPE_FAVORABLE = 3;
|
||||
CONST INT SPU_TYPE_PURCHASE = 5;
|
||||
|
||||
/**
|
||||
* @var int 1=上架 2=下架
|
||||
|
||||
@@ -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
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user