wyq 1 year ago
parent
commit
645872ffb0
1 changed files with 9 additions and 0 deletions
  1. 9 0
      XdCxRhDW.App/WebAPI/Controllers/DetectCgController.cs

+ 9 - 0
XdCxRhDW.App/WebAPI/Controllers/DetectCgController.cs

@@ -116,6 +116,15 @@ namespace XdCxRhDW.App.WebAPI
                 resDto.Df = result.df.Value;
                 resDto.Snr = result.snr.Value;
             }
+            try
+            {
+                //删除计算得文件
+                File.Delete(dto.file1);
+                File.Delete(dto.file2);
+            }
+            catch 
+            {
+            }
             return Success(resDto);
 
         }