kphcdr 1 anno fa
parent
commit
178b1289f3
2 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 1 1
      common/config.go
  2. 2 1
      common/const.go

+ 1 - 1
common/config.go

@@ -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))

+ 2 - 1
common/const.go

@@ -2,4 +2,5 @@ package common
 
 var Env string
 
-const APP_KEY = "kphcdr"
+const APP_KEY = "ccserver"
+const KCONF_PASSWORD = "12345678"