From b5afff6e21076cf8ab6d441aa45ab46bd9c772d4 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Wed, 26 Mar 2025 10:33:59 +0800 Subject: [PATCH] feat : spu --- app/Service/Api/Good/MealListService.php | 2 +- app/Service/Api/Good/OptionalListService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Service/Api/Good/MealListService.php b/app/Service/Api/Good/MealListService.php index 10c1834..18ff994 100644 --- a/app/Service/Api/Good/MealListService.php +++ b/app/Service/Api/Good/MealListService.php @@ -64,7 +64,7 @@ class MealListService extends BaseService if (empty($data)) return $this->return->success('success', ['list' => []]); - $stockKey = ApiRedisKey::goodStockKey($cycleId,(int)$siteInfo['kitchen_id']); + $stockKey = ApiRedisKey::goodStockKey((int)$cycleId,(int)$siteInfo['kitchen_id']); foreach ($data as &$item) { foreach ($item['sku_list'] as &$v) { $v['surplus_stock'] = $this->redisCache->zScore($stockKey,$v['id']) ?? 0; diff --git a/app/Service/Api/Good/OptionalListService.php b/app/Service/Api/Good/OptionalListService.php index 743ab2c..08d73f6 100644 --- a/app/Service/Api/Good/OptionalListService.php +++ b/app/Service/Api/Good/OptionalListService.php @@ -63,7 +63,7 @@ class OptionalListService extends BaseService if (empty($data)) return $this->return->success('success', ['list' => []]); - $stockKey = ApiRedisKey::goodStockKey($cycleId,(int)$siteInfo['kitchen_id']); + $stockKey = ApiRedisKey::goodStockKey((int)$cycleId,(int)$siteInfo['kitchen_id']); foreach ($data as &$item) { foreach ($item['sku_list'] as &$v) { $v['surplus_stock'] = $this->redisCache->zScore($stockKey,$v['id']) ?? 0;