|
|
@@ -228,7 +228,7 @@ namespace Util
|
|
|
condition = condition.Replace(".start(", ".StartsWith(");
|
|
|
condition = condition.Replace("True", "true");
|
|
|
condition = condition.Replace("False", "false");
|
|
|
- Console.WriteLine(condition);
|
|
|
+ // Console.WriteLine(condition);
|
|
|
bool result = await CSharpScript.EvaluateAsync<bool>(condition);
|
|
|
content = content.Replace(matchValue, result ? resultValue : elseValue);
|
|
|
}
|
|
|
@@ -240,10 +240,6 @@ namespace Util
|
|
|
#region 读取模版数据,替换对应的标签内容
|
|
|
public static string replaceKeyToValue(JsonData jsonObj, string templateString)
|
|
|
{
|
|
|
- if(templateString.Contains("<<ym.projectService.packageName>>"))
|
|
|
- {
|
|
|
- string packageName = "123123123";
|
|
|
- }
|
|
|
MatchCollection mc = Regex.Matches(templateString, "<<.*?>>");
|
|
|
foreach (Match m in mc)
|
|
|
{
|