查询京东门店范围
This commit is contained in:
@@ -1593,6 +1593,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
)
|
)
|
||||||
storeMaps, _ := dao.GetStoresMapList(dao.GetDB(), []int{model.VendorIDJD}, nil, nil, model.StoreStatusAll, model.StoreIsSyncAll, "", "")
|
storeMaps, _ := dao.GetStoresMapList(dao.GetDB(), []int{model.VendorIDJD}, nil, nil, model.StoreStatusAll, model.StoreIsSyncAll, "", "")
|
||||||
for _, v := range storeMaps {
|
for _, v := range storeMaps {
|
||||||
|
time.Sleep(time.Second / 2)
|
||||||
station, _ := jd.GetAPI("320406").GetDeliveryRangeByStationNo2(v.VendorStoreID)
|
station, _ := jd.GetAPI("320406").GetDeliveryRangeByStationNo2(v.VendorStoreID)
|
||||||
if station.DeliveryRangeType == 2 {
|
if station.DeliveryRangeType == 2 {
|
||||||
strs := strings.Split(station.DeliveryRange, ";")
|
strs := strings.Split(station.DeliveryRange, ";")
|
||||||
|
|||||||
Reference in New Issue
Block a user