修复CloudMerchantSpu_错误
This commit is contained in:
parent
035f49be5c
commit
3c037a03f0
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user