wanghan 7 сар өмнө
parent
commit
0b0fa07c9f

+ 3 - 8
TeamAAS-VM/Core/Management.cs

@@ -2233,14 +2233,9 @@ namespace TeamAAS_VP.Core
                                     LogHelper.WriteLogMes($"【mes开始ADD】");
                                     SendTaskMessage($"mes开始ADD", MessageLevel.Info);
                                     //上传mes
-                                    string torque = ""; string pressure = ""; string turn = "";
-                                    for (int j = 0; j < torqueList.Count; j++)
-                                    {
-                                        torque += torqueList[j] + ",";
-                                        pressure += pressureList[j] + ",";
-                                        turn += turnList[j] + ",";
-                                    }
-
+                                    string torque = string.Join(",", torqueList);
+                                    string pressure = string.Join(",", pressureList);
+                                    string turn = string.Join(",", turnList);
                                     (bool isSuccess, string response) = await _mesService.SubmitGetAsync(code, "", torque, pressure, turn, resultIndex == 1 ? true : false, _LastMesCheckTime[i], DateTime.UtcNow);
                                     if (isSuccess)
                                     {