|
@@ -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)
|
|
|
{
|