feat : sts

This commit is contained in:
2025-05-16 10:45:48 +08:00
parent 6d35fec834
commit 4c16e25a46
2 changed files with 11 additions and 5 deletions

View File

@@ -7,9 +7,14 @@ class CategoryCode
/**
* 商品分类 1=菜品 2=主食 3=加饭
*/
CONST int DISH = 1;
CONST int STAPLE = 2;
CONST int EXTRA_STAPLE = 3;
CONST INT DISH = 1;
CONST INT STAPLE = 2;
CONST INT EXTRA_STAPLE = 3;
CONST INT SOUP = 5;
CONST int SOUP = 5;
/**
* 列表分裂 99=秒杀 98=一键选购 不写入数据库(数据库得避开)
*/
CONST INT SECKILL = 99;
CONST INT PURCHASE = 98;
}

View File

@@ -14,6 +14,7 @@ use App\Cache\Redis\Api\ApiRedisKey;
use App\Cache\Redis\Api\GoodCache;
use App\Cache\Redis\Api\SiteCache;
use App\Cache\Redis\RedisCache;
use App\Constants\Common\CategoryCode;
use App\Constants\Common\GoodCode;
use App\Constants\ConfigCode;
use App\Exception\ErrException;
@@ -152,7 +153,7 @@ class OptionalListService extends BaseService
'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_type' => GoodCode::SPU_TYPE_PURCHASE,
'category_id' => 99,
'category_id' => CategoryCode::,
'spu_list' => $purchaseData
]);
}