1
This commit is contained in:
@@ -3668,7 +3668,7 @@ func AutoSaleStoreSku(ctx *jxcontext.Context, storeIDs []int, isNeedSync bool) (
|
|||||||
for storeID, storeSkuList := range storeSkuMap {
|
for storeID, storeSkuList := range storeSkuMap {
|
||||||
var skuIDs []int
|
var skuIDs []int
|
||||||
for _, storeSku := range storeSkuList {
|
for _, storeSku := range storeSkuList {
|
||||||
if now.Sub(storeSku.AutoSaleAt) > 0 {
|
if now.Sub(storeSku.AutoSaleAt) >= 0 {
|
||||||
storeSku.AutoSaleAt = utils.DefaultTimeValue
|
storeSku.AutoSaleAt = utils.DefaultTimeValue
|
||||||
if storeSku.Status != model.SkuStatusNormal {
|
if storeSku.Status != model.SkuStatusNormal {
|
||||||
storeSku.Status = model.SkuStatusNormal
|
storeSku.Status = model.SkuStatusNormal
|
||||||
|
|||||||
@@ -485,7 +485,7 @@ func Init() {
|
|||||||
// jdslogin.RefreshQRCode()
|
// jdslogin.RefreshQRCode()
|
||||||
//}, 10*time.Second, 10*time.Minute)
|
//}, 10*time.Second, 10*time.Minute)
|
||||||
ScheduleTimerFunc("AutoSaleStoreSku", func() {
|
ScheduleTimerFunc("AutoSaleStoreSku", func() {
|
||||||
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false)
|
cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, true)
|
||||||
}, autoSaleStoreSkuTimeList)
|
}, autoSaleStoreSkuTimeList)
|
||||||
|
|
||||||
if beego.BConfig.RunMode == "jxgy" {
|
if beego.BConfig.RunMode == "jxgy" {
|
||||||
|
|||||||
Reference in New Issue
Block a user