修复CloudMerchantSpu_错误

This commit is contained in:
mkm 2023-06-07 16:03:01 +08:00
parent 035f49be5c
commit 3c037a03f0

View File

@ -29,9 +29,9 @@ class CloudProduct
$RedisCacheService = app()->make(RedisCacheService::class); $RedisCacheService = app()->make(RedisCacheService::class);
foreach ($event['product_id'] as $productId) { foreach ($event['product_id'] as $productId) {
if ($event['status'] == 1) { if ($event['status'] == 1) {
$RedisCacheService->SADD('CloudMerchantSpu' . $cloudMerchant, $productId); $RedisCacheService->SADD('CloudMerchantSpu_' . $cloudMerchant, $productId);
} else { } else {
$RedisCacheService->SREM('CloudMerchantSpu' . $cloudMerchant, $productId); $RedisCacheService->SREM('CloudMerchantSpu_' . $cloudMerchant, $productId);
} }
} }
} }