修改店铺云商品列表的错误

This commit is contained in:
luofei 2023-06-13 18:04:59 +08:00
parent b4ef286e4e
commit feeac438bf

View File

@ -47,10 +47,10 @@ class CloudProduct
$exist = $RedisCacheService->SISMEMBER($cacheKey, $product['product_id']); $exist = $RedisCacheService->SISMEMBER($cacheKey, $product['product_id']);
if ($status == 1 && !$exist) { if ($status == 1 && !$exist) {
$RedisCacheService->SADD($cacheKey, $product['product_id']); $RedisCacheService->SADD($cacheKey, $product['product_id']);
$clearCache[] = $product['mer_id']; $clearCache[] = $cloudMerchant;
} elseif ($status == 0) { } elseif ($status == 0) {
$RedisCacheService->SREM($cacheKey, $product['product_id']); $RedisCacheService->SREM($cacheKey, $product['product_id']);
$clearCache[] = $product['mer_id']; $clearCache[] = $cloudMerchant;
} }
} }
foreach ($clearCache as $item) { foreach ($clearCache as $item) {