diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index 33c10fdf4..543c09ca6 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -662,7 +662,7 @@ func (v *VendorSync) ChangeStoreSkuSaleStatus(ctx *jxcontext.Context, storeID in db := dao.GetDB() storeSkuList, err := dao.GetStoresSkusInfoBySaleTime(db, storeID) if len(storeSkuList) < 1 || err != nil { - return errors.New(fmt.Sprintf("未查询到设置了可售时间的商品 GetStoresSkusInfoBySaleTime!err : %v", err)) + return nil } for _, v := range storeSkuList { storeIDs = append(storeIDs, v.StoreID) @@ -671,10 +671,7 @@ func (v *VendorSync) ChangeStoreSkuSaleStatus(ctx *jxcontext.Context, storeID in vendorIDs := partner.GetPurchasePlatformVendorIDs() dao.UpdateStoreSkuBindSyncStatus(db, vendorIDs, storeID) v.SyncStoresSkus(ctx, db, vendorIDs, storeIDs, skuIDs, false, isAsync, isContinueWhenError) - if err != nil { - return err - } - return nil + return err } func GetTimeMixByInt(begin1, end1, begin2, end2 int16) (beginAt, endAt int16) {