feat : sts
This commit is contained in:
@@ -10,4 +10,6 @@ class CategoryCode
|
||||
CONST int DISH = 1;
|
||||
CONST int STAPLE = 2;
|
||||
CONST int EXTRA_STAPLE = 3;
|
||||
|
||||
CONST int SOUP = 5;
|
||||
}
|
||||
@@ -104,6 +104,7 @@ class OptionalListService extends BaseService
|
||||
foreach ($data as &$item) {
|
||||
foreach ($item['sku_list'] as &$v) {
|
||||
$v['surplus_stock'] = $this->redisCache->zScore($stockKey,$v['id']) ?? 0;
|
||||
$v['category_id'] = $item['category_id'];
|
||||
}
|
||||
|
||||
if ($item['favorable'] == GoodCode::IS_FAVORABLE) {
|
||||
|
||||
Reference in New Issue
Block a user