Browse Source

参数顺序Bug

JeffWang 3 years ago
parent
commit
9716263821
1 changed files with 1 additions and 1 deletions
  1. 1 1
      FactoryTool_CShare/Business/SanhuaMethod.cs

+ 1 - 1
FactoryTool_CShare/Business/SanhuaMethod.cs

@@ -20,7 +20,7 @@ namespace MOKA_Factory_Tools
             HttpHelper http = new HttpHelper();
             HttpHelper http = new HttpHelper();
             HttpItem item = new HttpItem() {URL = sanhuaLoginInfo.url + "api/MESTestCollect/CheckLogin", Encoding = Encoding.UTF8,Method = "post", PostEncoding = Encoding.UTF8, KeepAlive = false};
             HttpItem item = new HttpItem() {URL = sanhuaLoginInfo.url + "api/MESTestCollect/CheckLogin", Encoding = Encoding.UTF8,Method = "post", PostEncoding = Encoding.UTF8, KeepAlive = false};
             item.ContentType = "application/json;charset=utf-8";
             item.ContentType = "application/json;charset=utf-8";
-            item.Postdata = string.Format("{{\"password\":\"{0}\",\"resourceCode\":\"{1}\",\"staffCode\":\"{2}\"}}", sanhuaLoginInfo.staffCode, sanhuaLoginInfo.password, sanhuaLoginInfo.resourceCode);
+            item.Postdata = string.Format("{{\"password\":\"{0}\",\"resourceCode\":\"{1}\",\"staffCode\":\"{2}\"}}", sanhuaLoginInfo.password, sanhuaLoginInfo.resourceCode, sanhuaLoginInfo.staffCode);
             HttpResult result = http.GetHtml(item);
             HttpResult result = http.GetHtml(item);
             if (result.StatusCode != System.Net.HttpStatusCode.OK)
             if (result.StatusCode != System.Net.HttpStatusCode.OK)
             {
             {