diff --git a/BPASmartClient.AgvApi/Controllers/robotjobController.cs b/BPASmartClient.AgvApi/Controllers/robotjobController.cs
index 686278d0..a0c6865d 100644
--- a/BPASmartClient.AgvApi/Controllers/robotjobController.cs
+++ b/BPASmartClient.AgvApi/Controllers/robotjobController.cs
@@ -15,13 +15,13 @@ namespace BPASmartClient.AgvApi.Controllers
///
///
[HttpPost("report")]
- public string report(string ent)
+ public string report(string sign)
{
- if (ent != null)
+ if (sign != null)
{
try
{
- var res = JsonConvert.DeserializeObject(ent);
+ var res = JsonConvert.DeserializeObject(sign);
if (res != null)
{
Factory.GetInstance.SendReport(res);
@@ -40,19 +40,19 @@ namespace BPASmartClient.AgvApi.Controllers
///
/// AGV上下料交互请求接口
///
- ///
+ ///
///
[HttpPost("upstreamrequest")]
- public string upstreamrequest(string upstreamrequest)
+ public string upstreamrequest(string sign)
{
- if (upstreamrequest != null)
+ if (sign != null)
{
try
{
- var res = JsonConvert.DeserializeObject(upstreamrequest);
+ var res = JsonConvert.DeserializeObject(sign);
if (res != null)
{
- Factory.GetInstance.SendUpstreamrequest(upstreamrequest);
+ Factory.GetInstance.SendUpstreamrequest(sign);
return "SUCCESS";
}
}
diff --git a/BPASmartClient.HubHelper/HubHelper.cs b/BPASmartClient.HubHelper/HubHelper.cs
index 9b6b1d2a..c5443b3a 100644
--- a/BPASmartClient.HubHelper/HubHelper.cs
+++ b/BPASmartClient.HubHelper/HubHelper.cs
@@ -13,20 +13,13 @@ namespace BPASmartClient.HubHelper
HubConnection hubConnection;
- public void Connect()
+ public void Connect(string ip, int port)
{
- hubConnection = new HubConnectionBuilder().WithAutomaticReconnect().WithUrl("http://localhost:8089/personhub").Build();//连接
- hubConnection.On