1
This commit is contained in:
parent
918b015034
commit
248a486809
@ -80,6 +80,16 @@ func (this* GameConf) InSceneWhiteList(launchObj *q5.XObject) bool {
|
|||||||
func (this* GameConf) InLaunchWhiteList(launchObj *q5.XObject) bool {
|
func (this* GameConf) InLaunchWhiteList(launchObj *q5.XObject) bool {
|
||||||
this.launchWhiteListMutex.Lock()
|
this.launchWhiteListMutex.Lock()
|
||||||
defer this.launchWhiteListMutex.Unlock()
|
defer this.launchWhiteListMutex.Unlock()
|
||||||
|
if launchObj.IsObject() &&
|
||||||
|
launchObj.HasKey("query") &&
|
||||||
|
launchObj.At("query").IsSimple() {
|
||||||
|
return launchObj.At("query").AsXValue().GetString() != "";
|
||||||
|
}
|
||||||
|
if launchObj.IsObject() &&
|
||||||
|
launchObj.HasKey("query") &&
|
||||||
|
launchObj.At("query").IsArray() {
|
||||||
|
return launchObj.At("query").Size() > 0;
|
||||||
|
}
|
||||||
if !launchObj.IsObject() ||
|
if !launchObj.IsObject() ||
|
||||||
!launchObj.HasKey("query") ||
|
!launchObj.HasKey("query") ||
|
||||||
!launchObj.At("query").IsObject() {
|
!launchObj.At("query").IsObject() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user