查询京东门店范围
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user