Commit 2360c1d2 张东亮

更改its的ip

1 个父辈 a450859b
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</root> </root>
</log4net> </log4net>
<appSettings> <appSettings>
<add key="ITS" value="http://10.85.17.233/ESMTCommonInterface/CommonService.asmx/VMIGetBoxDestInfo?boxRFID="/> <add key="ITS" value="http://10.85.71.25:8080/ESMTCommonInterface/CommonService.asmx/VMIGetBoxDestInfo?boxRFID="/>
<add key="WebService" value="http://127.0.0.1/BenQMIR/Webservice/AGVService.asmx/"/> <add key="WebService" value="http://127.0.0.1/BenQMIR/Webservice/AGVService.asmx/"/>
<add key="http.server" value="http://10.85.199.25/myproject/"/> <add key="http.server" value="http://10.85.199.25/myproject/"/>
<add key="FLEET" value="10.85.199.3"/> <add key="FLEET" value="10.85.199.3"/>
......
...@@ -232,7 +232,7 @@ namespace AGVControl ...@@ -232,7 +232,7 @@ namespace AGVControl
{ {
lineName = "4CFeeder"; lineName = "4CFeeder";
} }
string addr = "http://10.85.17.233/ESMTCommonInterface/CommonService.asmx/UpdateStatusBy?id=" + rfid + "&location=" + lineName; string addr = $"http://{itsIp}/ESMTCommonInterface/CommonService.asmx/UpdateStatusBy?id=" + rfid + "&location=" + lineName;
//[{"msg":"1更新成功"}] //[{"msg":"1更新成功"}]
try try
{ {
...@@ -261,6 +261,7 @@ namespace AGVControl ...@@ -261,6 +261,7 @@ namespace AGVControl
catch { return false; } catch { return false; }
return false; return false;
} }
static string itsIp = "10.85.71.25:8080";
/// <summary> /// <summary>
/// 获取大料架解绑情况 /// 获取大料架解绑情况
/// </summary> /// </summary>
...@@ -272,7 +273,7 @@ namespace AGVControl ...@@ -272,7 +273,7 @@ namespace AGVControl
lineName = ""; lineName = "";
//GET /ESMTCommonInterface/CommonService.asmx/GetRackBy?id=string HTTP/1.1 //GET /ESMTCommonInterface/CommonService.asmx/GetRackBy?id=string HTTP/1.1
//Host: 10.85.17.233 //Host: 10.85.17.233
string addr = "http://10.85.17.233/ESMTCommonInterface/CommonService.asmx/GetRackBy?id=" + rfid; string addr = $"http://{itsIp}/ESMTCommonInterface/CommonService.asmx/GetRackBy?id=" + rfid;
//[{"msg":"1OKD1"}] //[{"msg":"1OKD1"}]
//[{"msg":"0NGFeeder"}] //[{"msg":"0NGFeeder"}]
try try
...@@ -302,32 +303,6 @@ namespace AGVControl ...@@ -302,32 +303,6 @@ namespace AGVControl
} }
return false; return false;
} }
public static string GetRackBy(string rfid)
{
//GET /ESMTCommonInterface/CommonService.asmx/GetRackBy?id=string HTTP/1.1
//Host: 10.85.17.233
string addr = "http://10.85.17.233/ESMTCommonInterface/CommonService.asmx/GetRackBy?id=" + rfid;
//[{"msg":"1OKD1"}]
//[{"msg":"0NGFeeder"}]
try
{
string result = HttpHelper.Get(addr);
if (!result.Equals(""))
{
List<Msg> msgs = JsonHelper.DeserializeJsonToList<Msg>(result);
if (msgs == null || msgs.Count == 0)
return "";
return result;
}
}
catch (Exception ex)
{
Common.log.Error(ex.Message);
return "";
}
return "";
}
/// <summary> /// <summary>
/// 大料架接口回复 /// 大料架接口回复
/// </summary> /// </summary>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!