diff --git a/transform/apollo_migrate.go b/transform/apollo_migrate.go index 399ec95..4ce8dc8 100644 --- a/transform/apollo_migrate.go +++ b/transform/apollo_migrate.go @@ -13,7 +13,6 @@ import ( "fmt" "io/ioutil" "net/http" - "strings" "github.com/ddliu/go-httpclient" ) @@ -24,17 +23,6 @@ import ( // // Date : 4:06 下午 2021/11/30 func NewApolloMigrate(getAllApolloConfigURL string, appID string, env string, namespace string, cookie map[string]string, header map[string]string) ITransform { - if len(getAllApolloConfigURL) == 0 { - getAllApolloConfigURL = "http://test-apollo.portal.life.ke.com/apps/{APP_ID}/envs/{ENV}/clusters/default/namespaces/{NAMESPACE}/releases/active?page=0&size=1" - replaceMap := map[string]string{ - "{APP_ID}": appID, - "{ENV}": env, - "{NAMESPACE}": namespace, - } - for k, v := range replaceMap { - getAllApolloConfigURL = strings.ReplaceAll(getAllApolloConfigURL, k, v) - } - } if cookie == nil { cookie = make(map[string]string) header = make(map[string]string)