This commit is contained in:
苏尹岚
2020-11-27 16:27:45 +08:00
parent 6016df9311
commit 934dc75ee5

View File

@@ -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))