|
@@ -46,12 +46,12 @@ namespace Tasks
|
|
|
//附加数据,原样返回
|
|
//附加数据,原样返回
|
|
|
string attach = jsonObj["attach"].ToString();
|
|
string attach = jsonObj["attach"].ToString();
|
|
|
//读取模板文件内容
|
|
//读取模板文件内容
|
|
|
- string templateString = Function.ReadInstance("Template/" + modePath + ".json");
|
|
|
|
|
|
|
+ // string templateString = Function.ReadInstance("Template/" + modePath + ".json");
|
|
|
var templateService = App.GetRequiredService<IMakeTemplateService>();
|
|
var templateService = App.GetRequiredService<IMakeTemplateService>();
|
|
|
var template = templateService.GetFirst(m => m.templateName == modePath);
|
|
var template = templateService.GetFirst(m => m.templateName == modePath);
|
|
|
if(template == null) return;
|
|
if(template == null) return;
|
|
|
- // string templateString = template.templateContent;
|
|
|
|
|
- // templateString = HttpUtility.UrlDecode(templateString);
|
|
|
|
|
|
|
+ string templateString = template.templateContent;
|
|
|
|
|
+ templateString = HttpUtility.UrlDecode(templateString);
|
|
|
//解析模板内容
|
|
//解析模板内容
|
|
|
string resultString = await Util.Maker.StartMake(jsonObj["data"], templateString);
|
|
string resultString = await Util.Maker.StartMake(jsonObj["data"], templateString);
|
|
|
//生成文件
|
|
//生成文件
|