娃娃机etcd配置
This commit is contained in:
parent
6bd95be413
commit
ccc0e97635
|
@ -2757,6 +2757,9 @@ func (this *Scene) TryRelease() {
|
||||||
}
|
}
|
||||||
func (this *Scene) GetMachineServerSecret(Appid int64, platform string) string {
|
func (this *Scene) GetMachineServerSecret(Appid int64, platform string) string {
|
||||||
config := ConfigMgrInst.GetConfig(platform).MachineConfig
|
config := ConfigMgrInst.GetConfig(platform).MachineConfig
|
||||||
|
if config == nil {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
for _, info := range config.Info {
|
for _, info := range config.Info {
|
||||||
if info.AppId == Appid {
|
if info.AppId == Appid {
|
||||||
return info.ServerSecret
|
return info.ServerSecret
|
||||||
|
|
Loading…
Reference in New Issue