carresp延时处理

master
lxw 5 months ago
parent a35cca31ce
commit d822718121

@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using AutoMapper;
using HybirdFrameworkCore.Utils;
using HybirdFrameworkDriver.Session;
using log4net;
using Microsoft.AspNetCore.Mvc;
@ -102,7 +101,7 @@ public class CarController : ControllerBase
CarServerMgr.CarServer.LockMsgPair.Req = lockMsg;
ioSession.Send(lockMsg);
return CarServerMgr.CarServer.LockMsgPair.GetResp(TimeSpan.FromSeconds(5))?.Result == 0;
return CarServerMgr.CarServer.LockMsgPair.GetResp(TimeSpan.FromSeconds(8))?.Result == 0;
}
/// <summary>
@ -129,7 +128,7 @@ public class CarController : ControllerBase
CarServerMgr.CarServer.UnLockMsgPair.Req = unLockMsg;
ioSession.Send(unLockMsg);
return CarServerMgr.CarServer.UnLockMsgPair.GetResp(TimeSpan.FromSeconds(5))?.Result == 0;
return CarServerMgr.CarServer.UnLockMsgPair.GetResp(TimeSpan.FromSeconds(8))?.Result == 0;
}
/// <summary>
@ -152,7 +151,7 @@ public class CarController : ControllerBase
CarServerMgr.CarServer.SettleConfirmMsgPair.Req = settleConfirmMsg;
ioSession.Send(settleConfirmMsg);
return CarServerMgr.CarServer.SettleConfirmMsgPair.GetResp(TimeSpan.FromSeconds(5))?.Result == 0;
return CarServerMgr.CarServer.SettleConfirmMsgPair.GetResp(TimeSpan.FromSeconds(8))?.Result == 0;
}
/// <summary>
@ -189,7 +188,7 @@ public class CarController : ControllerBase
CarServerMgr.CarServer.SetParamMsgPair.Req = setParamMsg;
ioSession.Send(setParamMsg);
return CarServerMgr.CarServer.SetParamMsgPair.GetResp(TimeSpan.FromSeconds(5))?.Result == 0;
return CarServerMgr.CarServer.SetParamMsgPair.GetResp(TimeSpan.FromSeconds(8))?.Result == 0;
}
/// <summary>

Loading…
Cancel
Save