Commit 3aeffef1 LN

报警超时时间修改

1 个父辈 ec79ee36
......@@ -11,6 +11,7 @@ namespace OnlineStore.Common
/// </summary>
public class Setting_Init
{
public static readonly string TimeOutSeconds = "TimeOutSeconds";
public static readonly string DefaultDeviceIP= "DefaultDeviceIP";
public static readonly string ColorRuleConfig= "ColorRuleConfig";
public static readonly string DeviceLedType= "DeviceLedType";
......
......@@ -15,9 +15,14 @@ namespace OnlineStore.DeviceLibrary
public class StoreMoveInfo
{
public string Name = "";
public int TimeOutSeconds = 60;
public int TimeOutSeconds = ConfigAppSettings.GetIntValue(Setting_Init.TimeOutSeconds);
public StoreMoveInfo(int storeId)
{
if (TimeOutSeconds <= 0)
{
TimeOutSeconds = 180;
ConfigAppSettings.SaveValue(Setting_Init.TimeOutSeconds, TimeOutSeconds);
}
MoveType = MoveType.None;
MoveParam = new InOutParam(MoveType.None, "");
this.storeId = storeId;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!