Skip to content

Commit

Permalink
优化提示
Browse files Browse the repository at this point in the history
  • Loading branch information
javamxd committed Aug 7, 2020
1 parent 1968de9 commit 1450b1a
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,16 @@ var Parser = {
parse: function (stream) {
try{
var vars = {
db: 'org.ssssssss.magicapi.functions.DatabaseQuery'
};
for(var key in Parser.scriptClass){
if(key.indexOf('.') == -1){
var clazzName = Parser.scriptClass[key].className;
vars[key] = clazzName;
if(!Parser.scriptClass[clazzName]){
Parser.scriptClass[clazzName] = Parser.scriptClass[key];
}
}
}
var expression;
while (stream.hasMore()) {
var token = stream.consume();
Expand Down

0 comments on commit 1450b1a

Please sign in to comment.