|
@@ -83,21 +83,18 @@ namespace ExportStart
|
|
private static void SaveResult(string param, string result)
|
|
private static void SaveResult(string param, string result)
|
|
{
|
|
{
|
|
Console.WriteLine(param);
|
|
Console.WriteLine(param);
|
|
- File.AppendAllText(@"D:\log.txt", param);
|
|
|
|
try
|
|
try
|
|
{
|
|
{
|
|
|
|
|
|
JObject jObject = JObject.Parse(param);
|
|
JObject jObject = JObject.Parse(param);
|
|
string key = "ResultFileName";
|
|
string key = "ResultFileName";
|
|
string path = jObject[key].ToString();
|
|
string path = jObject[key].ToString();
|
|
- File.AppendAllText(@"D:\log.txt", path);
|
|
|
|
if (path.IsNotNullEmpty())
|
|
if (path.IsNotNullEmpty())
|
|
{
|
|
{
|
|
Console.WriteLine(path);
|
|
Console.WriteLine(path);
|
|
var dir = Directory.GetParent(path);
|
|
var dir = Directory.GetParent(path);
|
|
if(!dir.Exists)
|
|
if(!dir.Exists)
|
|
dir.Create();
|
|
dir.Create();
|
|
- File.AppendAllText(@"D:\log.txt", result);
|
|
|
|
File.AppendAllText(path, result);
|
|
File.AppendAllText(path, result);
|
|
}
|
|
}
|
|
}
|
|
}
|