Parcourir la source

处理子集相同字段标签

lichunlei il y a 3 mois
Parent
commit
fc28c3a220
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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:.*?>>");