zoulei 1 year ago
parent
commit
36a0db0a41
2 changed files with 1 additions and 3 deletions
  1. 0 2
      XdCxRhDW.App/ServerContext.cs
  2. 1 1
      XdCxRhDW.App/Service/FileWriterService.cs

+ 0 - 2
XdCxRhDW.App/ServerContext.cs

@@ -98,8 +98,6 @@ namespace XdCxRhDW.App
             {
                 svr = list.Where(p => p.SvrType == type).OrderBy(p => Guid.NewGuid()).FirstOrDefault();
             }
-            if (svr == null)
-                throw new Exception($"找不到【{type.GetEnumDisplayName()}】");
             return svr;
         }
 

+ 1 - 1
XdCxRhDW.App/Service/FileWriterService.cs

@@ -73,7 +73,7 @@ namespace XdCxRhDW.App.Service
                 flag = "低轨双星";
             else if (posDto.PosTypeDto == EnumPosTypeDto.X3Leo)
                 flag = "低轨三星";
-            string resFile = Path.Combine(posDir, $"{flag}定位结果_{posDto.SigTime:yyyyMMdd}.txt");
+            string resFile = Path.Combine(posDir, $"{flag}定位结果_{DateTime.Now:yyyyMMdd}.txt");
             string txt = sb.ToString();
             lock (this)
             {