Explorar o código

参数顺序Bug

JeffWang %!s(int64=3) %!d(string=hai) anos
pai
achega
9716263821
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
             {