diff --git a/business/partner/purchase/ebai/store.go b/business/partner/purchase/ebai/store.go index d92b0ed58..8f88b77a7 100644 --- a/business/partner/purchase/ebai/store.go +++ b/business/partner/purchase/ebai/store.go @@ -408,9 +408,9 @@ func genStoreMapFromStore(store *tEbaiStoreInfo) map[string]interface{} { params["longitude"] = jxutils.IntCoordinate2Standard(store.Lng) params["latitude"] = jxutils.IntCoordinate2Standard(store.Lat) params["coord_type"] = ebaiapi.CoordTypeAutonavi - if deliveryRegion := JxDeliveryRegion2Ebai(&store.Store); deliveryRegion != nil { - params["delivery_region"] = deliveryRegion - } + // if deliveryRegion := JxDeliveryRegion2Ebai(&store.Store); deliveryRegion != nil { + // params["delivery_region"] = deliveryRegion + // } if store.ProvinceID != 0 { params["province"] = store.ProvinceID } diff --git a/business/partner/purchase/jd/store.go b/business/partner/purchase/jd/store.go index e4c9fdfd1..4a9b73857 100644 --- a/business/partner/purchase/jd/store.go +++ b/business/partner/purchase/jd/store.go @@ -156,7 +156,6 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin } if store.SyncStatus&(model.SyncFlagNewMask|model.SyncFlagStoreAddress) != 0 { storeParams.StationAddress = store.Address - storeParams.DeliveryRangeType = store.DeliveryRangeType storeParams.CoordinateType = jdapi.CoordinateTypeAutonavi // 一直用高德 storeParams.Lng = jxutils.IntCoordinate2Standard(store.Lng) storeParams.Lat = jxutils.IntCoordinate2Standard(store.Lat) @@ -166,11 +165,12 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin if store.JdDistrictCode != 0 { storeParams.County = store.JdDistrictCode } - if store.DeliveryRangeType == model.DeliveryRangeTypePolygon { - storeParams.CoordinatePoints = store.DeliveryRange - } else { - storeParams.DeliveryRangeRadius = int(utils.Str2Int64WithDefault(store.DeliveryRange, 0)) - } + // storeParams.DeliveryRangeType = store.DeliveryRangeType + // if store.DeliveryRangeType == model.DeliveryRangeTypePolygon { + // storeParams.CoordinatePoints = store.DeliveryRange + // } else { + // storeParams.DeliveryRangeRadius = int(utils.Str2Int64WithDefault(store.DeliveryRange, 0)) + // } } if specialDistrictMap[storeParams.County] != 0 { storeParams.City = storeParams.County @@ -183,7 +183,7 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin _, storeParams.CloseStatus = JxStoreStatus2JdStatus(jxutils.MergeStoreStatus(store.Status, store.JdStoreStatus)) } fillOpTimeParams(storeParams, store.GetOpTimeList()) - globals.SugarLogger.Debug(utils.Format4Output(storeParams, false)) + // globals.SugarLogger.Debug(utils.Format4Output(storeParams, false)) errList := errlist.New() if globals.EnableJdStoreWrite { errList.AddErr(a.UpdateStoreInfo4Open2(storeParams, modifyCloseStatus))