From ac01741aef883a31f06d0d59bfde2451002b172d Mon Sep 17 00:00:00 2001 From: wangzijiao Date: Fri, 14 Sep 2018 17:26:25 +0800 Subject: [PATCH] add dvt platform, eq evt --- .../src/netease_control_center/globals/platformConfig.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/netease_control_center_common_module/src/netease_control_center/globals/platformConfig.go b/app/netease_control_center_common_module/src/netease_control_center/globals/platformConfig.go index 3890420..b7ae065 100644 --- a/app/netease_control_center_common_module/src/netease_control_center/globals/platformConfig.go +++ b/app/netease_control_center_common_module/src/netease_control_center/globals/platformConfig.go @@ -1,5 +1,7 @@ package globals +import "netease_control_center/interfaces/log" + type PlatformConfig struct { MicAdc bool InputKeyPath string @@ -19,9 +21,14 @@ func GetCurPlatformConfig() PlatformConfig { } if Hv == nil { + log.Println(log.ErrorLog, "Can not get the right platform, hv is nil!") return platformConfigs["default"] } + queryString := *Hv + if queryString == "DVT" { + queryString = "EVT" + } if tmp,ok := platformConfigs[*Hv]; ok { curPlatformConfig = &tmp return tmp