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