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",