mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2026-01-06 15:52:03 +00:00
Update TemplateManagerImpl.java
This commit is contained in:
@@ -222,6 +222,8 @@ public class TemplateManagerImpl implements TemplateManager {
|
|||||||
for (Map.Entry<String, Object> argumentEntry : rawChildArguments.entrySet()) {
|
for (Map.Entry<String, Object> argumentEntry : rawChildArguments.entrySet()) {
|
||||||
// 获取最终的string形式参数
|
// 获取最终的string形式参数
|
||||||
String placeholder = LEFT_BRACKET + argumentEntry.getKey() + RIGHT_BRACKET;
|
String placeholder = LEFT_BRACKET + argumentEntry.getKey() + RIGHT_BRACKET;
|
||||||
|
// 父亲参数最大
|
||||||
|
if (result.containsKey(placeholder)) continue;
|
||||||
Object rawArgument = argumentEntry.getValue();
|
Object rawArgument = argumentEntry.getValue();
|
||||||
if (rawArgument instanceof Map<?,?> mapArgument) {
|
if (rawArgument instanceof Map<?,?> mapArgument) {
|
||||||
// 此参数是一个map,那么对map应用模板,然后再根据map是否含有type等参数,判别其是否为带名特殊参数
|
// 此参数是一个map,那么对map应用模板,然后再根据map是否含有type等参数,判别其是否为带名特殊参数
|
||||||
|
|||||||
Reference in New Issue
Block a user