yangpeixing
9 天以前 4fc31b41c205507607c91ab3afe10fbc06a9aa09
项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Task/TaskController.cs
@@ -57,27 +57,5 @@
        {
            return Service.SendAgvTask(modelProcessCode, taskNum);
        }
        [HttpPost, HttpGet, Route("elevator"), AllowAnonymous]
        public WebResponseContent initialzationElevator()
        {
            WebResponseContent content = new WebResponseContent();
            try
            {
                CommonElevator? commonElevator = Storage.Devices.FirstOrDefault(x => x.DeviceCode == "TSJ1") as CommonElevator;
                if(commonElevator != null)
                {
                    commonElevator.SetValue<ElevatorDBName, short>(ElevatorDBName.StopElevator, 1);
                    Thread.Sleep(1000);
                    commonElevator.SetValue<ElevatorDBName, short>(ElevatorDBName.StopElevator, 0);
                    return content.OK("鎻愬崌鏈哄垵濮嬪寲鎴愬姛");
                }
                return content.Error("澶辫触");
            }
            catch(Exception ex)
            {
                return content.Error(ex.Message);
            }
        }
    }
}