Browse Source

解决Windows服务器返回参数不一致导致异常。

Dail 1 year ago
parent
commit
64b3dc9d37

BIN
.vs/Welling_Motor_Debug_Tool/v17/.suo


BIN
Welling_Motor_Debug_Tool/bin/Debug/Welling_Motor_Debug_Tool.exe


+ 2 - 2
Welling_Motor_Debug_Tool/ftp.cs

@@ -340,9 +340,9 @@ namespace Welling_Motor_Debug_Tool
                     }
                     else
                     {
-                        if (str.Trim().Substring(0, 1).ToUpper() == "D")
+                        if (str.Trim().Substring(0, 1) == "d")
                         {
-                            strList.Add(str.Substring(55).Trim());
+                            strList.Add(str.Split(' ')[str.Split(' ').Length - 1].Trim());
                         }
                     }
                 }

BIN
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.exe


BIN
Welling_Motor_Debug_Tool/obj/Debug/Welling_Motor_Debug_Tool.pdb