Commit ed3f9331 by 杨树贤

判断依据

parent dfa5297b
Showing with 2 additions and 2 deletions
......@@ -253,8 +253,8 @@ class SyncSupplierService
$preStatus = null;
$redis = new RedisModel();
if ($isEntity) {
$cachedStatus = $redis->hget('supplier_status_before_disable', $supplierId);
if (!$cachedStatus && $cachedStatus !== "0") {
$cachedExists = $redis->hexists('supplier_status_before_disable', $supplierId);
if (!$cachedExists) {
$redis->hset('supplier_status_before_disable', $supplierId, $status);
}
} 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