浏览代码

参数顺序Bug

JeffWang 3 年之前
父节点
当前提交
9716263821
共有 1 个文件被更改,包括 1 次插入1 次删除
  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();
             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.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);
             if (result.StatusCode != System.Net.HttpStatusCode.OK)
             {