From 934dc75ee53b3198ad3f94325b32e15214cbed18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 27 Nov 2020 16:27:45 +0800 Subject: [PATCH] aa --- business/partner/purchase/jd/store.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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))