From d82271812188a785f3f5858f8b06c2de9be43b74 Mon Sep 17 00:00:00 2001 From: lxw Date: Tue, 25 Jun 2024 17:23:28 +0800 Subject: [PATCH] =?UTF-8?q?carresp=E5=BB=B6=E6=97=B6=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebStarter/Controllers/CarController.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/WebStarter/Controllers/CarController.cs b/WebStarter/Controllers/CarController.cs index 16fb389..71b6f60 100644 --- a/WebStarter/Controllers/CarController.cs +++ b/WebStarter/Controllers/CarController.cs @@ -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; } /// @@ -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; } /// @@ -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; } /// @@ -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; } ///