diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 4a8e4284f..da195eb10 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -979,7 +979,7 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor } } dao.Commit(db) - if valid["status"] != nil { + if valid["status"] != nil || valid["freightDeductionPack"] != nil { _, err = CurVendorSync.SyncStore(ctx, db, vendorID, storeID, false, userName) } } diff --git a/business/partner/purchase/jd/store.go b/business/partner/purchase/jd/store.go index 9c1995b3c..4018c9c1e 100644 --- a/business/partner/purchase/jd/store.go +++ b/business/partner/purchase/jd/store.go @@ -3,6 +3,7 @@ package jd import ( "fmt" "strings" + "time" "git.rosy.net.cn/jx-callback/business/jxcallback/scheduler" "git.rosy.net.cn/jx-callback/business/jxutils" @@ -181,6 +182,12 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin FullFreeMoney: int64(v.BeginPrice), FreeType: jdapi.FreightFreeTypePartBase, FreeMoney: int64(v.DeductFreight), + FreeFreightTimes: []*jdapi.FreeFreightTime{ + &jdapi.FreeFreightTime{ + FreeBeginTime: utils.Time2TimeStr(time.Now()), + FreeEndTime: utils.Time2TimeStr(time.Now().Add(24 * time.Hour * 365 * 2)), + }, + }, }) } }