This commit is contained in:
aozhiwei 2021-01-22 14:00:48 +08:00
parent 10d65f3d95
commit bfd3f58c89
2 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,6 @@ func (this* GameConf) InSceneWhiteList(launchObj *q5.XObject) bool {
return ok
}
func (this* GameConf) InLaunchWhiteList(launchObj *q5.XObject) bool {
this.launchWhiteListMutex.Lock()
defer this.launchWhiteListMutex.Unlock()
@ -86,13 +85,14 @@ func (this* GameConf) InLaunchWhiteList(launchObj *q5.XObject) bool {
!launchObj.At("query").IsObject() {
return false;
}
queryObj := launchObj.At("query")
return launchObj.At("query").Size() > 0;
/*queryObj := launchObj.At("query")
for key, _ := range(this.launchWhiteList) {
if queryObj.HasKey(key) {
return true;
}
}
return false
return false*/
}
func (this* GameConf) Init() {

2
third_party/q5 vendored

@ -1 +1 @@
Subproject commit bc3b2825a61e30f4a4f9108c89951cbfac7f23f7
Subproject commit 562242ca3f859d2320252b3fce5bee06f055aa80