add dvt platform, eq evt

This commit is contained in:
wangzijiao 2018-09-14 17:26:25 +08:00
parent 84da3dc26a
commit ac01741aef
1 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,7 @@
package globals package globals
import "netease_control_center/interfaces/log"
type PlatformConfig struct { type PlatformConfig struct {
MicAdc bool MicAdc bool
InputKeyPath string InputKeyPath string
@ -19,9 +21,14 @@ func GetCurPlatformConfig() PlatformConfig {
} }
if Hv == nil { if Hv == nil {
log.Println(log.ErrorLog, "Can not get the right platform, hv is nil!")
return platformConfigs["default"] return platformConfigs["default"]
} }
queryString := *Hv
if queryString == "DVT" {
queryString = "EVT"
}
if tmp,ok := platformConfigs[*Hv]; ok { if tmp,ok := platformConfigs[*Hv]; ok {
curPlatformConfig = &tmp curPlatformConfig = &tmp
return tmp return tmp