- disable store sku lock

This commit is contained in:
gazebo
2019-03-06 11:05:55 +08:00
parent e74e1d1548
commit f5983050f0

View File

@@ -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
}