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