現場測試提交

master
lxw 6 months ago
parent 70d00183dd
commit 51aabd63a2

@ -55,7 +55,7 @@ public class CarController : ControllerBase
CarServerMgr.CarServer.LockMsgPair.Req = lockMsg; CarServerMgr.CarServer.LockMsgPair.Req = lockMsg;
SessionMgr.Broadcast(lockMsg); SessionMgr.Broadcast(lockMsg);
return CarServerMgr.CarServer.LockMsgPair.GetResp(TimeSpan.FromMinutes(1))?.Result == 0; return CarServerMgr.CarServer.LockMsgPair.GetResp(TimeSpan.FromSeconds(5))?.Result == 0;
} }
/// <summary> /// <summary>
@ -80,7 +80,7 @@ public class CarController : ControllerBase
CarServerMgr.CarServer.UnLockMsgPair.Req = unLockMsg; CarServerMgr.CarServer.UnLockMsgPair.Req = unLockMsg;
SessionMgr.Broadcast(unLockMsg); SessionMgr.Broadcast(unLockMsg);
return CarServerMgr.CarServer.UnLockMsgPair.GetResp(TimeSpan.FromMinutes(1))?.Result == 0; return CarServerMgr.CarServer.UnLockMsgPair.GetResp(TimeSpan.FromSeconds(5))?.Result == 0;
} }
/// <summary> /// <summary>
@ -101,7 +101,7 @@ public class CarController : ControllerBase
CarServerMgr.CarServer.SettleConfirmMsgPair.Req = settleConfirmMsg; CarServerMgr.CarServer.SettleConfirmMsgPair.Req = settleConfirmMsg;
SessionMgr.Broadcast(settleConfirmMsg); SessionMgr.Broadcast(settleConfirmMsg);
return CarServerMgr.CarServer.SettleConfirmMsgPair.GetResp(TimeSpan.FromMinutes(1))?.Result == 0; return CarServerMgr.CarServer.SettleConfirmMsgPair.GetResp(TimeSpan.FromSeconds(5))?.Result == 0;
} }
/// <summary> /// <summary>
@ -136,7 +136,7 @@ public class CarController : ControllerBase
CarServerMgr.CarServer.SetParamMsgPair.Req = setParamMsg; CarServerMgr.CarServer.SetParamMsgPair.Req = setParamMsg;
SessionMgr.Broadcast(setParamMsg); SessionMgr.Broadcast(setParamMsg);
return CarServerMgr.CarServer.SetParamMsgPair.GetResp(TimeSpan.FromMinutes(1))?.Result ==0; return CarServerMgr.CarServer.SetParamMsgPair.GetResp(TimeSpan.FromSeconds(5))?.Result ==0;
} }
/// <summary> /// <summary>

@ -2,7 +2,7 @@
"ConnectionStrings": { "ConnectionStrings": {
"ConfigId": "master", "ConfigId": "master",
"DbType": "MySql", "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": { "Update": {
"AutoUpdate": "false", "AutoUpdate": "false",

Loading…
Cancel
Save