From 5327f92aba4e75fc255cb715473ed4cb84702d4f Mon Sep 17 00:00:00 2001 From: hehaibing-1996 Date: Thu, 6 Mar 2025 13:10:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=9C=B0=E5=9B=BE=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=97=B6=E9=97=B4=E9=97=B4=E9=9A=94=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WCS.BLL/Config/JsConfig.cs | 6 ++++++ WCS.BLL/Manager/AGVManager.cs | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/WCS.BLL/Config/JsConfig.cs b/WCS.BLL/Config/JsConfig.cs index b5905a9..0b5b1d1 100644 --- a/WCS.BLL/Config/JsConfig.cs +++ b/WCS.BLL/Config/JsConfig.cs @@ -41,6 +41,12 @@ namespace WCS.BLL.Config public bool IsResetDBOrTable { get; set; } public int InstoreTimeOut { get; set; } = 5000; + + /// + /// 同步地图数据间隔时间 + /// + public int SyncMapDatasIntervalTime { get; set; } = 60000; + #region 盟讯公司后台配置 public bool IsMx { get; set; } /// diff --git a/WCS.BLL/Manager/AGVManager.cs b/WCS.BLL/Manager/AGVManager.cs index 34e3a45..17f8dab 100644 --- a/WCS.BLL/Manager/AGVManager.cs +++ b/WCS.BLL/Manager/AGVManager.cs @@ -4,6 +4,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using WCS.BLL.Config; using WCS.BLL.DbModels; using WCS.BLL.Tool; using WCS.DAL.Db; @@ -209,7 +210,7 @@ namespace WCS.BLL.Manager } Logs.Write("【定时任务】定时同步货架绑定情况,结束", LogsType.Tasks); //每60秒同步一次 - Thread.Sleep(20000); + Thread.Sleep(LocalFile.Config.SyncMapDatasIntervalTime); } }); #endregion