diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index a4d48aed3..849a67c78 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -3668,7 +3668,7 @@ func AutoSaleStoreSku(ctx *jxcontext.Context, storeIDs []int, isNeedSync bool) ( for storeID, storeSkuList := range storeSkuMap { var skuIDs []int for _, storeSku := range storeSkuList { - if now.Sub(storeSku.AutoSaleAt) > 0 { + if now.Sub(storeSku.AutoSaleAt) >= 0 { storeSku.AutoSaleAt = utils.DefaultTimeValue if storeSku.Status != model.SkuStatusNormal { storeSku.Status = model.SkuStatusNormal diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index ac808389f..2399f9b5d 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -485,7 +485,7 @@ func Init() { // jdslogin.RefreshQRCode() //}, 10*time.Second, 10*time.Minute) ScheduleTimerFunc("AutoSaleStoreSku", func() { - cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false) + cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, true) }, autoSaleStoreSkuTimeList) if beego.BConfig.RunMode == "jxgy" {