1
huangxiaoqiang
2025-07-02 9b139ce92aa09f466c01111dd66af9347a34d865
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/AGV/AGVService.cs
@@ -558,9 +558,10 @@
                return "";
            }
        }
        public WebResponseContent DeviceWarning(AGVDTO DTO)
        private static readonly SemaphoreSlim _semaphoreUpdate = new SemaphoreSlim(1, 1);
        public async Task<WebResponseContent> DeviceWarning(AGVDTO DTO)
        {
            await _semaphoreUpdate.WaitAsync();
            WebResponseContent content = new WebResponseContent();
            try
            {
@@ -589,6 +590,10 @@
                LogFactory.GetLog("AG涓婁紶鎶ヨ淇℃伅").InfoFormat(true, $"璇锋眰鍙傛暟锛歿JsonConvert.SerializeObject(ex.Message)}", "");
                return content.Error(ex.Message);
            }
            finally
            {
                _semaphoreUpdate.Release();
            }
            
        }
        #endregion 澶栭儴鎺ュ彛鏂规硶