9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-27 10:59:07 +00:00

Update TemplateManagerImpl.java

This commit is contained in:
XiaoMoMi
2025-04-09 21:38:37 +08:00
parent aee2faa8b0
commit 36c677ca9b

View File

@@ -222,6 +222,8 @@ public class TemplateManagerImpl implements TemplateManager {
for (Map.Entry<String, Object> argumentEntry : rawChildArguments.entrySet()) {
// 获取最终的string形式参数
String placeholder = LEFT_BRACKET + argumentEntry.getKey() + RIGHT_BRACKET;
// 父亲参数最大
if (result.containsKey(placeholder)) continue;
Object rawArgument = argumentEntry.getValue();
if (rawArgument instanceof Map<?,?> mapArgument) {
// 此参数是一个map那么对map应用模板然后再根据map是否含有type等参数判别其是否为带名特殊参数