浏览代码

处理子集相同字段标签

lichunlei 3 月之前
父节点
当前提交
fc28c3a220
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Util/Maker.cs

+ 2 - 0
Util/Maker.cs

@@ -101,6 +101,7 @@ namespace Util
                                 }
                                 else
                                 {
+                                    itemString = itemString.Replace("<<p." + itemKey + ">>", itemObj.ToString());
                                     Dictionary<string, string> replaceDict = new Dictionary<string, string>();
                                     int index = 0;
                                     MatchCollection subLoops = Regex.Matches(itemString, "<<ym-loop:.*?>>[\\s\\S]*?<</ym-loop:.*?>>");
@@ -185,6 +186,7 @@ namespace Util
                             }
                             else
                             {
+                                itemString = itemString.Replace("<<p." + itemKey + ">>", itemObj.ToString());
                                 Dictionary<string, string> replaceDict = new Dictionary<string, string>();
                                 int index = 0;
                                 MatchCollection subLoops = Regex.Matches(itemString, "<<ym-loop:.*?>>[\\s\\S]*?<</ym-loop:.*?>>");