add dvt platform, eq evt
This commit is contained in:
parent
84da3dc26a
commit
ac01741aef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue