查询京东门店范围

This commit is contained in:
苏尹岚
2020-09-01 15:44:17 +08:00
parent 1e39e25534
commit 04fc381372

View File

@@ -1594,7 +1594,10 @@ 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)
station, err := jd.GetAPI("320406").GetDeliveryRangeByStationNo2(v.VendorStoreID)
if err != nil {
continue
}
if station.DeliveryRangeType == 2 {
strs := strings.Split(station.DeliveryRange, ";")
ss = append(ss, &tmp{