diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 43645afa7..6b587a43c 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -2181,7 +2181,7 @@ func GetMissingStoreSkuFromOrder(ctx *jxcontext.Context, fromTime time.Time) (mi return missingList, err } -func AutoSaleStoreSku(ctx *jxcontext.Context, storeIDs []int) (err error) { +func AutoSaleStoreSku(ctx *jxcontext.Context, storeIDs []int, isNeedSync bool) (err error) { db := dao.GetDB() storeSkuList, err := dao.GetAutoSaleStoreSku(db, storeIDs) if err != nil { @@ -2206,7 +2206,7 @@ func AutoSaleStoreSku(ctx *jxcontext.Context, storeIDs []int) (err error) { } } } - if len(skuIDs) > 0 { + if isNeedSync && len(skuIDs) > 0 { if _, err = CurVendorSync.SyncStoresSkus(ctx, db, nil, []int{storeID}, skuIDs, false, true, true); err != nil { return err } diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index b4b126001..b9a6cb73a 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -45,23 +45,8 @@ var ( "00:01:00", } - autoEnableStoreSkuTimeList = []string{ - "7:00:00", - "8:00:00", - "9:00:00", - "10:00:00", - "11:00:00", - "12:00:00", - "13:00:00", - "14:00:00", - "15:00:00", - "16:00:00", - "17:00:00", - "18:00:00", - "19:00:00", - "20:00:00", - "21:00:00", - "22:00:00", + autoSaleStoreSkuTimeList = []string{ + "20:50:00", } ) @@ -91,8 +76,8 @@ func Init() { }, updateActStatusTimeList) } ScheduleTimerFunc(func() { - cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil) - }, autoEnableStoreSkuTimeList) + cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false) + }, autoSaleStoreSkuTimeList) } func doDailyWork() { diff --git a/business/model/net_spider.go b/business/model/net_spider.go index d7b747e29..bf9e909b2 100644 --- a/business/model/net_spider.go +++ b/business/model/net_spider.go @@ -30,9 +30,3 @@ func (*PageShop) TableUnique() [][]string { []string{"VendorStoreID", "VendorID"}, } } - -func (*PageShop) TableIndex() [][]string { - return [][]string{ - []string{"Tel1"}, - } -}