瀏覽代碼

登录接口新增参数

jianfeng1.wang 2 年之前
父節點
當前提交
db49f5561a
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      FactoryTool_CShare/Business/CommonMethod.cs
  2. 1 0
      FactoryTool_CShare/Models/StructList.cs

+ 1 - 1
FactoryTool_CShare/Business/CommonMethod.cs

@@ -1749,7 +1749,7 @@ end:
         public static bool UserLogin(string url, string account, string password, string pcmac, SQLiteConnection sqliteConn, out LoginOutput loginOutput1)
         {
             loginOutput1 = new LoginOutput();
-            LoginInput LoginInput1 = new LoginInput { account = account, password = password, mac = pcmac };
+            LoginInput LoginInput1 = new LoginInput { account = account, password = password, mac = pcmac, toolVersion = Utils.FileUtils.GetAssemblyVersion() };
             string jsonorder = Newtonsoft.Json.JsonConvert.SerializeObject(LoginInput1, Newtonsoft.Json.Formatting.Indented);
 
             HttpHelper http = new HttpHelper();

+ 1 - 0
FactoryTool_CShare/Models/StructList.cs

@@ -601,6 +601,7 @@ namespace MOKA_Factory_Tools
         public string account { get; set; }
         public string password { get; set; }
         public string mac { get; set; }
+        public string toolVersion { get; set; }
     }
     public class LoginOutput
     {