Commit ed3f9331 by 杨树贤

判断依据

parent dfa5297b
Showing with 2 additions and 2 deletions
...@@ -253,8 +253,8 @@ class SyncSupplierService ...@@ -253,8 +253,8 @@ class SyncSupplierService
$preStatus = null; $preStatus = null;
$redis = new RedisModel(); $redis = new RedisModel();
if ($isEntity) { if ($isEntity) {
$cachedStatus = $redis->hget('supplier_status_before_disable', $supplierId); $cachedExists = $redis->hexists('supplier_status_before_disable', $supplierId);
if (!$cachedStatus && $cachedStatus !== "0") { if (!$cachedExists) {
$redis->hset('supplier_status_before_disable', $supplierId, $status); $redis->hset('supplier_status_before_disable', $supplierId, $status);
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment