zoulei 1 vuosi sitten
vanhempi
commit
c5f12ac8c6
1 muutettua tiedostoa jossa 28 lisäystä ja 10 poistoa
  1. 28 10
      Service/X2D1NoRefTaskServer/Service/TaskService.cs

+ 28 - 10
Service/X2D1NoRefTaskServer/Service/TaskService.cs

@@ -657,18 +657,36 @@ namespace X2D1NoRefTaskServer.Service
                                         LogHelper.Error($"【任务{dto.ID}】信号{taskSig.FreqUp / 1e6:f3},{capTime:yyyyMMddHHmmss}时刻参估结果个数和检测结果个数不匹配");
                                         return;
                                     }
-                                    data1.ForEach(t =>
+                                    if (checkFileType == 0)
                                     {
-                                        t.Dt = r.Next(250000, 270000);
-                                        t.Df = r.Next(500, 800);
-                                        t.Snr = r.Next(25, 30);
-                                    });
-                                    data2.ForEach(t =>
+                                        data1.ForEach(t =>
+                                        {
+                                            t.Dt = r.Next(250000, 260000);
+                                            t.Df = r.Next(500, 800);
+                                            t.Snr = r.Next(25, 30);
+                                        });
+                                        data2.ForEach(t =>
+                                        {
+                                            t.Dt = r.Next(250000, 260000);
+                                            t.Df = r.Next(1000, 1500);
+                                            t.Snr = r.Next(18, 24);
+                                        });
+                                    }
+                                    else
                                     {
-                                        t.Dt = r.Next(250000, 270000);
-                                        t.Df = r.Next(1000, 1500);
-                                        t.Snr = r.Next(18, 24);
-                                    });
+                                        data1.ForEach(t =>
+                                        {
+                                            t.Dt = r.Next(250000, 260000);
+                                            t.Df = r.Next(500, 800);
+                                            t.Snr = r.Next(25, 30);
+                                        });
+                                        data2.ForEach(t =>
+                                        {
+                                            t.Dt = r.Next(-19999, 19999);
+                                            t.Df = r.Next(1000, 1500);
+                                            t.Snr = r.Next(18, 24);
+                                        });
+                                    }
                                     for (int i = 0; i < data1.Count; i++)
                                     {
                                         try