|
@@ -52,7 +52,7 @@ func InitConfig() {
|
|
} `json:"data"`
|
|
} `json:"data"`
|
|
}
|
|
}
|
|
rConfig := &remoteConfig{}
|
|
rConfig := &remoteConfig{}
|
|
- resp, err := http.PostForm("http://kconf.kphcdr.com/api/config/all?app_key=kphcdr&env=qa", url.Values{})
|
|
|
|
|
|
+ resp, err := http.PostForm(fmt.Sprintf("http://kconf.kphcdr.com/api/config/all?app_key=%s&env=%s", APP_KEY, Env), url.Values{})
|
|
|
|
|
|
if err != nil {
|
|
if err != nil {
|
|
panic(fmt.Sprintf("拉取配置失败:%s", err))
|
|
panic(fmt.Sprintf("拉取配置失败:%s", err))
|