diff --git a/business/partner/purchase/jd/store.go b/business/partner/purchase/jd/store.go index f5b2a775a..9b7182995 100644 --- a/business/partner/purchase/jd/store.go +++ b/business/partner/purchase/jd/store.go @@ -208,10 +208,13 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin if err2 == nil { if storeDetail.FreightDeductionPackObj != nil { freightParams := &jdapi.UpdateStoreFreightParam{ - StationNo: store.VendorStoreID, - UserPin: userName, - OpenDistanceFreight: false, - StartCharge: int64(storeDetail.FreightDeductionPackObj.StartPrice), + StationNo: store.VendorStoreID, + UserPin: userName, + OpenDistanceFreight: true, + StartCharge: int64(storeDetail.FreightDeductionPackObj.StartPrice), + DistanceFreightThreshold: 1000, + DistanceUnit: 1000, + DistanceFreight: 200, } if len(storeDetail.FreightDeductionPackObj.FreightDeductionList) > 0 { globals.SugarLogger.Debug("FreightDeductionPackObj", utils.Format4Output(storeDetail.FreightDeductionPackObj, false))