Browse Source

处理子集相同字段标签

lichunlei 3 months ago
parent
commit
fc28c3a220
1 changed files with 2 additions and 0 deletions
  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:.*?>>");