From f5983050f061f24e3a2a6f132cbf980492d5b36e Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 6 Mar 2019 11:05:55 +0800 Subject: [PATCH] - disable store sku lock --- business/jxutils/storeskulock/storeskulock.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business/jxutils/storeskulock/storeskulock.go b/business/jxutils/storeskulock/storeskulock.go index b202fe890..920dfe91a 100644 --- a/business/jxutils/storeskulock/storeskulock.go +++ b/business/jxutils/storeskulock/storeskulock.go @@ -13,6 +13,7 @@ const ( ) func LockJdStoreSku(jdStoreID string, jdSkuID int64, expire time.Time) { + return globals.SugarLogger.Debug(expire, " ", time.Now()) duration := expire.Sub(time.Now()) if duration > 0 { @@ -25,6 +26,7 @@ func UnlockJdStoreSku(jdStoreID string, jdSkuID int64) { } func IsJdStoreSkuLocked(jdStoreID string, jdSkuID int64) bool { + return false return api.Cacher.Get(genCacheKey(jdStoreID, jdSkuID)) != nil }