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;