查询京东门店范围

This commit is contained in:
苏尹岚
2020-09-01 15:41:57 +08:00
parent d68eebfc8b
commit 1e39e25534

View File

@@ -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, "", "")
for _, v := range storeMaps {
time.Sleep(time.Second / 2)
station, _ := jd.GetAPI("320406").GetDeliveryRangeByStationNo2(v.VendorStoreID)
if station.DeliveryRangeType == 2 {
strs := strings.Split(station.DeliveryRange, ";")