|
@@ -61,7 +61,7 @@ func GetConfig() *Config {
|
|
|
}
|
|
|
|
|
|
func usingRemote(rConfig *remoteConfig) {
|
|
|
- resp, err := http.Get(fmt.Sprintf("http://kconf.kphcdr.com/api/config/all?app_key=%s&env=%s", APP_KEY, Env))
|
|
|
+ resp, err := http.Get(fmt.Sprintf("http://kconf.kphcdr.com/api/config?appkey=%s&env=%s&password=%s", APP_KEY, Env, KCONF_PASSWORD))
|
|
|
|
|
|
if err != nil {
|
|
|
panic(fmt.Sprintf("拉取配置失败:%s", err))
|