This commit is contained in:
苏尹岚
2021-03-01 14:44:48 +08:00
parent 30c5645eef
commit 423e0de993

View File

@@ -1881,15 +1881,23 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
}
dao.GetRows(db, &storeMaps, sql, sqlParams)
for _, v := range storeMaps {
err = api.JdShop2API.CreateGisFence(utils.Str2Int(v.VendorStoreID), "1.5")
err = api.JdShop2API.CreateGisFence(utils.Str2Int(v.VendorStoreID), "2")
if err != nil {
err2 := api.JdShop2API.CreateGisFence(utils.Str2Int(v.VendorStoreID), "1")
api.JdShop2API.CreateGisFence(utils.Str2Int(err.Error()), "2")
err2 := api.JdShop2API.CreateGisFence(utils.Str2Int(v.VendorStoreID), "2")
if err2 != nil {
stores = append(stores, v.StoreID)
api.JdShop2API.CreateGisFence(utils.Str2Int(err.Error()), "1")
err3 := api.JdShop2API.CreateGisFence(utils.Str2Int(v.VendorStoreID), "2")
if err3 != nil {
err4 := api.JdShop2API.CreateGisFence(utils.Str2Int(v.VendorStoreID), "1")
if err4 != nil {
stores = append(stores, v.StoreID)
}
}
}
}
}
fmt.Println("resultstore2", stores)
fmt.Println("resultstore3", stores)
return err
}