Browse Source

修改泰国接口数据

callm 3 days ago
parent
commit
658fa57cc9
1 changed files with 16 additions and 5 deletions
  1. 16 5
      UAS_MES_HYSX/CustomControl/TextBoxWithIcon/SnCollectionBox.cs

+ 16 - 5
UAS_MES_HYSX/CustomControl/TextBoxWithIcon/SnCollectionBox.cs

@@ -39,14 +39,25 @@ namespace UAS_MES_NEW.CustomControl.TextBoxWithIcon
             {
                 if (SystemInf.UpperCollection && !base.Text.Contains("CHANGEUSER:"))
                 {
-                    return base.Text.ToUpper();
+                    if (!base.Text.ToUpper().Contains("DID="))
+                    {
+                        return base.Text.ToUpper();
+                    }
+                    else
+                    {
+                        return Substring(base.Text.ToUpper(), "DID=", "V=");
+                    }
                 }
-                else if (Text.Contains("did="))
                 {
-                    return Substring(base.Text, "did=", "wifiCfg=");
+                    if (!base.Text.Contains("did="))
+                    {
+                        return base.Text;
+                    }
+                    else
+                    {
+                        return Substring(base.Text, "did=", "V=");
+                    }
                 }
-                else
-                    return base.Text;
             }
 
             set