- disable store sku lock
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user