1
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user