From 51aabd63a2271a6f04e493564ccaec12a3600bba Mon Sep 17 00:00:00 2001 From: lxw Date: Sat, 1 Jun 2024 21:36:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=BE=E5=A0=B4=E6=B8=AC=E8=A9=A6=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebStarter/Controllers/CarController.cs | 8 ++++---- WebStarter/appsettings.prod.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/WebStarter/Controllers/CarController.cs b/WebStarter/Controllers/CarController.cs index 59c30e9..7b9739e 100644 --- a/WebStarter/Controllers/CarController.cs +++ b/WebStarter/Controllers/CarController.cs @@ -55,7 +55,7 @@ public class CarController : ControllerBase CarServerMgr.CarServer.LockMsgPair.Req = lockMsg; SessionMgr.Broadcast(lockMsg); - return CarServerMgr.CarServer.LockMsgPair.GetResp(TimeSpan.FromMinutes(1))?.Result == 0; + return CarServerMgr.CarServer.LockMsgPair.GetResp(TimeSpan.FromSeconds(5))?.Result == 0; } /// @@ -80,7 +80,7 @@ public class CarController : ControllerBase CarServerMgr.CarServer.UnLockMsgPair.Req = unLockMsg; SessionMgr.Broadcast(unLockMsg); - return CarServerMgr.CarServer.UnLockMsgPair.GetResp(TimeSpan.FromMinutes(1))?.Result == 0; + return CarServerMgr.CarServer.UnLockMsgPair.GetResp(TimeSpan.FromSeconds(5))?.Result == 0; } /// @@ -101,7 +101,7 @@ public class CarController : ControllerBase CarServerMgr.CarServer.SettleConfirmMsgPair.Req = settleConfirmMsg; SessionMgr.Broadcast(settleConfirmMsg); - return CarServerMgr.CarServer.SettleConfirmMsgPair.GetResp(TimeSpan.FromMinutes(1))?.Result == 0; + return CarServerMgr.CarServer.SettleConfirmMsgPair.GetResp(TimeSpan.FromSeconds(5))?.Result == 0; } /// @@ -136,7 +136,7 @@ public class CarController : ControllerBase CarServerMgr.CarServer.SetParamMsgPair.Req = setParamMsg; SessionMgr.Broadcast(setParamMsg); - return CarServerMgr.CarServer.SetParamMsgPair.GetResp(TimeSpan.FromMinutes(1))?.Result ==0; + return CarServerMgr.CarServer.SetParamMsgPair.GetResp(TimeSpan.FromSeconds(5))?.Result ==0; } /// diff --git a/WebStarter/appsettings.prod.json b/WebStarter/appsettings.prod.json index 16fcaa2..8b4720d 100644 --- a/WebStarter/appsettings.prod.json +++ b/WebStarter/appsettings.prod.json @@ -2,7 +2,7 @@ "ConnectionStrings": { "ConfigId": "master", "DbType": "MySql", - "SqlConnection": "server=localhost;Port=3306;Database=huanneng_dev;Uid=root;Pwd=123456;Charset=utf8;" + "SqlConnection": "server=localhost;Port=3306;Database=huanneng_dev;Uid=root;Pwd=anyixing2023!@#;Charset=utf8;" }, "Update": { "AutoUpdate": "false",