This commit is contained in:
aozhiwei 2021-01-26 21:39:51 +08:00
parent 918b015034
commit 248a486809

View File

@ -80,6 +80,16 @@ func (this* GameConf) InSceneWhiteList(launchObj *q5.XObject) bool {
func (this* GameConf) InLaunchWhiteList(launchObj *q5.XObject) bool {
this.launchWhiteListMutex.Lock()
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() ||
!launchObj.HasKey("query") ||
!launchObj.At("query").IsObject() {