| | |
| | | #endregion << ç æ¬ 注 é >> |
| | | |
| | | using AutoMapper; |
| | | using Newtonsoft.Json; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; |
| | | using SqlSugar; |
| | | using SqlSugar.Extensions; |
| | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | // ServiceLogger.WriteLogToFile(""); |
| | | string inparam = JsonConvert.SerializeObject(taskDTO); |
| | | |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"ReceiveMESTaskæ¹æ³å
¥å{inparam}"); |
| | | Dt_Task task = new Dt_Task(); |
| | | Dt_Task taskinfo = BaseDal.QueryFirst(x => x.TaskNum == taskDTO.task_id); |
| | | if(taskDTO.cmd==101)//妿æ¯101ææ§çä»»å¡å·å»æ¥ |
| | |
| | | |
| | | if (taskDTO.cmd!=3001&& taskDTO.cmd != 101 && taskinfo != null) |
| | | { |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"ä»»å¡å·éå¤ï¼ä»»å¡å·ï¼{taskDTO.task_id}"); |
| | | return content = WebResponseContent.Instance.Error($"ä»»å¡å·éå¤ï¼ä»»å¡å·ï¼{taskDTO.task_id}"); |
| | | } |
| | | Dt_LocationInfo locationsrc = _locationInfoRepository.QueryFirst(x => x.Remark == taskDTO.src_station.ToString()); |
| | |
| | | } |
| | | else |
| | | { |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"WCSæªæ¥è¯¢å°æºç«ç¹å¯¹åºçåºä½ï¼æºç«ç¹ï¼{taskDTO.dest_station.ToString()}"); |
| | | return content = WebResponseContent.Instance.Error($"WCSæªæ¥è¯¢å°æºç«ç¹å¯¹åºçåºä½ï¼æºç«ç¹ï¼{taskDTO.dest_station.ToString()}"); |
| | | } |
| | | break; |
| | |
| | | } |
| | | else |
| | | { |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"WCSæªæ¥è¯¢å°æºç«ç¹å¯¹åºçåºä½ï¼æºç«ç¹ï¼{taskDTO.dest_station.ToString()}"); |
| | | return content = WebResponseContent.Instance.Error($"WCSæªæ¥è¯¢å°æºç«ç¹å¯¹åºçåºä½ï¼æºç«ç¹ï¼{taskDTO.dest_station.ToString()}"); |
| | | } |
| | | } |
| | |
| | | { |
| | | UpdateTaskStatus(taskinfo.TaskId, (int)TaskInStatusEnum.AGV_InExecuting); |
| | | _taskExecuteDetailService.AddTaskExecuteDetail(task.TaskId, $"AGVå
¥åºæ§è¡ä¸"); |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"AGVå
¥åºæ§è¡ä¸ï¼èªå¨3001ï¼æ´æ°ç¶ææåï¼ä»»å¡å·ï¼{taskinfo.TaskId}"); |
| | | return content = WebResponseContent.Instance.OK($"AGVå
¥åºæ§è¡ä¸ï¼èªå¨3001ï¼æ´æ°ç¶ææåï¼ä»»å¡å·ï¼{taskinfo.TaskId}"); |
| | | } |
| | | else |
| | |
| | | //æ´æ°ä»»å¡è¡¨ä¸NextAddressåæ®µä¸ºæ°çä»»å¡å· taskDTO.weight-æ§çä»»å¡å· taskDTO.task_id-æ°çä»»å¡å· |
| | | UpdateTaskStatus(taskinfo.TaskId, taskDTO.task_id, (int)TaskInStatusEnum.AGV_InFinish); |
| | | _taskExecuteDetailService.AddTaskExecuteDetail(task.TaskId, $"AGVæ¬è¿å®æ"); |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"AGVæ¬è¿å®æï¼101ï¼æ´æ°ç¶ææåï¼ä»»å¡å·ï¼{taskinfo.TaskId}"); |
| | | return content = WebResponseContent.Instance.OK($"AGVæ¬è¿å®æï¼101ï¼æ´æ°ç¶ææåï¼ä»»å¡å·ï¼{taskinfo.TaskId}"); |
| | | } |
| | | else |
| | | { |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"AGVæ¬è¿å®æï¼101ï¼æ´æ°ç¶ææ¶ï¼æ¥è¯¢ä¸å°ä»»å¡å·"); |
| | | return content = WebResponseContent.Instance.Error($"AGVæ¬è¿å®æï¼101ï¼æ´æ°ç¶ææ¶ï¼æ¥è¯¢ä¸å°ä»»å¡å·"); |
| | | } |
| | | break; |
| | |
| | | } |
| | | else |
| | | { |
| | | return content = WebResponseContent.Instance.Error($"WCSæªæ¥è¯¢å°ç®æ ç«ç¹å¯¹åºçåºä½ï¼ç®æ ç«ç¹ï¼{taskDTO.dest_station.ToString()}"); |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"WCSæªæ¥è¯¢å°ç®æ ç«ç¹å¯¹åºçåºä½ï¼ç®æ ç«ç¹ï¼{taskDTO.dest_station.ToString()}"); |
| | | return content = WebResponseContent.Instance.Error($"WCSæªæ¥è¯¢å°ç®æ ç«ç¹å¯¹åºçåºä½ï¼ç®æ ç«ç¹ï¼{taskDTO.dest_station.ToString()}"); |
| | | } |
| | | break; |
| | | case 104://ç»ç«æºä¸æ æåä½-->ç»ç«æº |
| | |
| | | } |
| | | else |
| | | { |
| | | return content = WebResponseContent.Instance.Error($"WCSæªæ¥è¯¢å°ç®æ ç«ç¹å¯¹åºçåºä½ï¼ç®æ ç«ç¹ï¼{task.TargetAddress.ToString()}"); |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"WCSæªæ¥è¯¢å°ç®æ ç«ç¹å¯¹åºçåºä½ï¼ç®æ ç«ç¹ï¼{task.TargetAddress.ToString()}"); |
| | | return content = WebResponseContent.Instance.Error($"WCSæªæ¥è¯¢å°ç®æ ç«ç¹å¯¹åºçåºä½ï¼ç®æ ç«ç¹ï¼{task.TargetAddress.ToString()}"); |
| | | } |
| | | //æ ¹æ®ç®æ å°åï¼ç»ç«æºï¼æ¥è¯¢é»è®¤çæ§è¡ä»»å¡çå°å åæºç¼å· |
| | | Dt_LocationInfo locationtemp2 = _locationInfoRepository.QueryFirst(x => x.LocationCode == task.TargetAddress.ToString()); |
| | |
| | | } |
| | | else |
| | | { |
| | | |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"WCSæªæ¥è¯¢å°ç»ç«æºå¯¹åºçé»è®¤å°å åæºé
ç½®"); |
| | | return content = WebResponseContent.Instance.Error($"WCSæªæ¥è¯¢å°ç»ç«æºå¯¹åºçé»è®¤å°å åæºé
ç½®"); |
| | | } |
| | | |
| | |
| | | |
| | | task.TaskNum = taskDTO.task_id; |
| | | task.PalletCode = taskDTO.CarId; |
| | | task.Roadway = "SC01"; |
| | | |
| | | if (string.IsNullOrEmpty(task.SourceAddress))//妿䏿¯ç«ç¹ï¼ç´æ¥åè¡åå± |
| | | { |
| | | task.SourceAddress = $"SC01-{taskDTO.src_rack.ToString().PadLeft(3, '0')}-{taskDTO.src_col.ToString().PadLeft(3, '0')}-{taskDTO.src_row.ToString().PadLeft(3, '0')}"; |
| | |
| | | { |
| | | if (srcLocation.EnableStatus == (int)EnableStatusEnum.Disable) |
| | | { |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"æºå°åå·²ç¦ç¨ï¼{srcLocation.LocationCode}"); |
| | | return content = WebResponseContent.Instance.Error($"æºå°åå·²ç¦ç¨ï¼{srcLocation.LocationCode}"); |
| | | } |
| | | if (tarLocation.EnableStatus == (int)EnableStatusEnum.Disable) |
| | | { |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"ç®æ å°åå·²ç¦ç¨ï¼{tarLocation.LocationCode}"); |
| | | return content = WebResponseContent.Instance.Error($"ç®æ å°åå·²ç¦ç¨ï¼{tarLocation.LocationCode}"); |
| | | } |
| | | if (taskDTO.cmd != 101)//å
¥åºæ¶ä¸éè¦å¤ææ¯å¦éå®ï¼éå®ç¶ææ¯å¨çæä»»å¡æ¶éå® |
| | |
| | | { |
| | | if (srcLocation.LocationStatus == (int)LocationStatusEnum.Lock) |
| | | { |
| | | |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"æºå°åå·²éå®ï¼{srcLocation.LocationCode}"); |
| | | return content = WebResponseContent.Instance.Error($"æºå°åå·²éå®ï¼{srcLocation.LocationCode}"); |
| | | } |
| | | if (tarLocation.LocationStatus == (int)LocationStatusEnum.Lock) |
| | | { |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"ç®æ å°åå·²éå®ï¼{tarLocation.LocationCode}"); |
| | | return content = WebResponseContent.Instance.Error($"ç®æ å°åå·²éå®ï¼{tarLocation.LocationCode}"); |
| | | } |
| | | } |
| | |
| | | //WCSæ¥è¯¢åºä½ç¶ææ¯å¦ä¸ºâ空é²â并䏿ªç¦ç¨ï¼éå®åºä½ä¿®æ¹åºä½ç¶æä¸ºâéå®âï¼çæWCS产åå
¥åºä»»å¡ï¼å å
¥WCSä»»å¡éåä¸ã |
| | | if (tarLocation.LocationStatus != (int)LocationStatusEnum.Free) |
| | | { |
| | | |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"å
¥åº-ç®æ å°å䏿¯ç©ºé²ç¶æï¼{tarLocation.LocationCode}"); |
| | | return content = WebResponseContent.Instance.Error($"å
¥åº-ç®æ å°å䏿¯ç©ºé²ç¶æï¼{tarLocation.LocationCode}"); |
| | | } |
| | | //srcLocation.LocationStatus = (int)LocationStatusEnum.Lock; |
| | |
| | | //WCSæ¥è¯¢åºä½ç¶ææ¯å¦ä¸ºâæè´§âï¼åºä½/æååºä½æ¯å¦â空é²â |
| | | if (srcLocation.LocationStatus != (int)LocationStatusEnum.InStock) |
| | | { |
| | | |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"ç§»åº-æºå°å䏿¯æè´§ç¶æï¼{srcLocation.LocationCode}"); |
| | | return content = WebResponseContent.Instance.Error($"ç§»åº-æºå°å䏿¯æè´§ç¶æï¼{srcLocation.LocationCode}"); |
| | | } |
| | | if(tarLocation.LocationStatus != (int)LocationStatusEnum.Free) |
| | | { |
| | | |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"ç§»åº-ç®æ å°å䏿¯ç©ºé²ç¶æï¼{srcLocation.LocationCode}"); |
| | | return content = WebResponseContent.Instance.Error($"ç§»åº-ç®æ å°å䏿¯ç©ºé²ç¶æï¼{srcLocation.LocationCode}"); |
| | | } |
| | | srcLocation.LocationStatus = (int)LocationStatusEnum.Lock; |
| | |
| | | //WCSæ¥è¯¢åºä½ç¶ææ¯å¦ä¸ºâæè´§â |
| | | if (srcLocation.LocationStatus != (int)LocationStatusEnum.InStock) |
| | | { |
| | | |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"å¼å¸¸åºåº-æºå°å䏿¯æè´§ç¶æï¼{srcLocation.LocationCode}"); |
| | | return content = WebResponseContent.Instance.Error($"å¼å¸¸åºåº-æºå°å䏿¯æè´§ç¶æï¼{srcLocation.LocationCode}"); |
| | | } |
| | | srcLocation.LocationStatus = (int)LocationStatusEnum.Lock; |
| | |
| | | //WCSæ¥è¯¢æååºä½æ¯å¦âæè´§â |
| | | if (srcLocation.LocationStatus != (int)LocationStatusEnum.InStock) |
| | | { |
| | | |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"空车åºåº-æºå°å䏿¯æè´§ç¶æï¼{srcLocation.LocationCode}"); |
| | | return content = WebResponseContent.Instance.Error($"空车åºåº-æºå°å䏿¯æè´§ç¶æï¼{srcLocation.LocationCode}"); |
| | | } |
| | | //srcLocation.LocationStatus = (int)LocationStatusEnum.Lock; |
| | |
| | | //WCSæ¥è¯¢æååºä½æ¯å¦âæè´§â |
| | | if (srcLocation.LocationStatus != (int)LocationStatusEnum.InStock) |
| | | { |
| | | |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"䏿任å¡-æºå°å䏿¯æè´§ç¶æï¼{srcLocation.LocationCode}"); |
| | | return content = WebResponseContent.Instance.Error($"䏿任å¡-æºå°å䏿¯æè´§ç¶æï¼{srcLocation.LocationCode}"); |
| | | } |
| | | //srcLocation.LocationStatus = (int)LocationStatusEnum.Lock; |
| | |
| | | } |
| | | else |
| | | { |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"åºä½å°åä¸åå¨ï¼ä»»å¡å·:{task.TaskNum}"); |
| | | return content = WebResponseContent.Instance.Error($"åºä½å°åä¸åå¨ï¼ä»»å¡å·:{task.TaskNum}"); |
| | | } |
| | | |
| | |
| | | _unitOfWorkManage.RollbackTran(); |
| | | throw; |
| | | } |
| | | |
| | | content = WebResponseContent.Instance.OK("æå",task); |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"æ¥æ¶ä»»å¡æåï¼ä»»å¡å·:{task.TaskNum}"); |
| | | content = WebResponseContent.Instance.OK($"æ¥æ¶ä»»å¡æåï¼ä»»å¡å·:{task.TaskNum}", task); |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | ServiceLogger.WriteDebug("ReceiveTask", $"任塿¥æ¶é误,é误信æ¯:{ex.Message}"); |
| | | content = WebResponseContent.Instance.Error($"任塿¥æ¶é误,é误信æ¯:{ex.Message}"); |
| | | } |
| | | return content; |
| | |
| | | MESResponse res = ApiInvoke.SendTaskCMD(sendcmd); |
| | | if (res != null && res.code != 0) |
| | | { |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"大å åæºå®æåºåºä»»å¡ååä¼ MES失败ï¼,ä»»å¡å·:ã{taskNum}ã,失败信æ¯:ã{res.message}ã"); |
| | | content = WebResponseContent.Instance.Error($"大å åæºå®æåºåºä»»å¡ååä¼ MES失败ï¼,ä»»å¡å·:ã{taskNum}ã,失败信æ¯:ã{res.message}ã"); |
| | | } |
| | | |
| | |
| | | catch (Exception ex) |
| | | { |
| | | _unitOfWorkManage.RollbackTran(); |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"大å åæºæ§è¡åºåºä»»å¡å¤±è´¥ï¼,ä»»å¡å·:ã{taskNum}ã,失败信æ¯:ã{ex.Message}ã"); |
| | | content = WebResponseContent.Instance.Error($"大å åæºæ§è¡åºåºä»»å¡å¤±è´¥ï¼,ä»»å¡å·:ã{taskNum}ã,失败信æ¯:ã{ex.Message}ã"); |
| | | } |
| | | |
| | |
| | | |
| | | //å
¥åºå®æï¼åä¼ MES å
¥åºå®æåä¼ task.NextAddress ä¹å101è¯·æ±æ¶åçæ°ä»»å¡å· |
| | | MESSendCMD sendcmd = new MESSendCMD { cmd = 201, task_id = int.Parse(task.NextAddress), status = 6 }; |
| | | string inparam = JsonConvert.SerializeObject(sendcmd); |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"大å åæºå®æå
¥åºä»»å¡ååä¼ MESå
¥å:{inparam}"); |
| | | MESResponse res = ApiInvoke.SendTaskCMD(sendcmd); |
| | | if (res != null && res.code != 0) |
| | | { |
| | | |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"大å åæºå®æå
¥åºä»»å¡ååä¼ MES失败ï¼,ä»»å¡å·:ã{taskNum}ã,失败信æ¯:ã{res.message}ã"); |
| | | content = WebResponseContent.Instance.Error($"大å åæºå®æå
¥åºä»»å¡ååä¼ MES失败ï¼,ä»»å¡å·:ã{taskNum}ã,失败信æ¯:ã{res.message}ã"); |
| | | } |
| | | else |
| | | { |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"大å åæºå®æå
¥åºä»»å¡ååä¼ MESæåï¼,ä»»å¡å·:ã{taskNum}ã"); |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | _unitOfWorkManage.RollbackTran(); |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"大å åæºæ§è¡å
¥åºä»»å¡å¤±è´¥ï¼,ä»»å¡å·:ã{taskNum}ã,失败信æ¯:ã{ex.Message}ã"); |
| | | content = WebResponseContent.Instance.Error($"大å åæºæ§è¡å
¥åºä»»å¡å¤±è´¥ï¼,ä»»å¡å·:ã{taskNum}ã,失败信æ¯:ã{ex.Message}ã"); |
| | | } |
| | | } |
| | |
| | | srcLocation.LocationStatus = (int)LocationStatusEnum.Free; |
| | | |
| | | Dt_LocationInfo tarLocation = _locationInfoRepository.QueryFirst(x => x.LocationCode == task.TargetAddress); |
| | | srcLocation.LocationStatus = (int)LocationStatusEnum.InStock; |
| | | tarLocation.LocationStatus = (int)LocationStatusEnum.InStock; |
| | | UpdateTaskStatus(task.TaskId, (int)TaskOutStatusEnum.SC_OutFinish); |
| | | _taskExecuteDetailService.AddTaskExecuteDetail(task.TaskId, $"å åæºåºåºå®æ"); |
| | | |
| | |
| | | //ç§»åºå®æï¼åä¼ MES |
| | | //åä¼ å°WMS |
| | | MESSendCMD sendcmd = new MESSendCMD { cmd = 201, task_id = task.TaskNum, status = 6 }; |
| | | string inparam = JsonConvert.SerializeObject(sendcmd); |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"大å åæºå®æåºåºä»»å¡ååä¼ MESå
¥å:{inparam}"); |
| | | MESResponse res = ApiInvoke.SendTaskCMD(sendcmd); |
| | | if (res != null && res.code != 0) |
| | | { |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"大å åæºå®æåºåºä»»å¡ååä¼ MES失败ï¼,ä»»å¡å·:ã{taskNum}ã,失败信æ¯:ã{res.message}ã"); |
| | | content = WebResponseContent.Instance.Error($"大å åæºå®æåºåºä»»å¡ååä¼ MES失败ï¼,ä»»å¡å·:ã{taskNum}ã,失败信æ¯:ã{res.message}ã"); |
| | | } |
| | | |
| | |
| | | catch (Exception ex) |
| | | { |
| | | _unitOfWorkManage.RollbackTran(); |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"大å åæºæ§è¡åºåºä»»å¡å¤±è´¥ï¼,ä»»å¡å·:ã{taskNum}ã,失败信æ¯:ã{ex.Message}ã"); |
| | | content = WebResponseContent.Instance.Error($"大å åæºæ§è¡åºåºä»»å¡å¤±è´¥ï¼,ä»»å¡å·:ã{taskNum}ã,失败信æ¯:ã{ex.Message}ã"); |
| | | } |
| | | } |
| | |
| | | _unitOfWorkManage.CommitTran(); |
| | | //䏿宿ï¼åä¼ WMS |
| | | MESSendCMD sendcmd = new MESSendCMD { cmd = 201, task_id = task.TaskNum, status = 6 }; |
| | | string inparam = JsonConvert.SerializeObject(sendcmd); |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"å°å åæºæ§è¡åºåºä»»å¡åä¼ MESå
¥å{inparam}"); |
| | | MESResponse res = ApiInvoke.SendTaskCMD(sendcmd); |
| | | if (res != null && res.code != 0) |
| | | { |
| | |
| | | startPlan= "101"+ SourceCodes[2].Substring(1,2); |
| | | } |
| | | DeliveryPlan send = new DeliveryPlan { startPlan = startPlan, isQuit = false, CarId = task.PalletCode }; |
| | | string inparam2 = JsonConvert.SerializeObject(send); |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"å°å åæºæ§è¡åºåºä»»å¡åä¼ MESå
¥å{inparam2}"); |
| | | ApiInvoke.DeliveryPlanCMD(send);//åè°MESæ¥å£çæç©ºè½¦åºåºä»»å¡ |
| | | |
| | | //ææç屿°é½åå®ï¼éè¦ææåä½ç¶ææ¹ä¸ºç©ºé²ç¶æ |
| | | srcLocation.LocationStatus = (int)LocationStatusEnum.Free; |
| | | _locationInfoRepository.UpdateData(srcLocation); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | catch (Exception ex) |
| | | { |
| | | _unitOfWorkManage.RollbackTran(); |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"å°å åæºæ§è¡åºåºä»»å¡å¤±è´¥ï¼,ä»»å¡å·:ã{taskNum}ã,失败信æ¯:ã{ex.Message}ã"); |
| | | content = WebResponseContent.Instance.Error($"å°å åæºæ§è¡åºåºä»»å¡å¤±è´¥ï¼,ä»»å¡å·:ã{taskNum}ã,失败信æ¯:ã{ex.Message}ã"); |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"ä»»å¡ç±»åé误,æªæ¾å°è¯¥ä»»å¡ç±»å,ä»»å¡å·:ã{taskNum}ã,ä»»å¡ç±»å:ã{task.TaskType}ã"); |
| | | throw new Exception($"ä»»å¡ç±»åé误,æªæ¾å°è¯¥ä»»å¡ç±»å,ä»»å¡å·:ã{taskNum}ã,ä»»å¡ç±»å:ã{task.TaskType}ã"); |
| | | } |
| | | content = WebResponseContent.Instance.OK(); |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"ä»»å¡å®ææå,ä»»å¡å·:ã{taskNum}ã"); |
| | | content = WebResponseContent.Instance.OK($"ä»»å¡å®ææå,ä»»å¡å·:ã{taskNum}ã"); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | content = WebResponseContent.Instance.Error($"ä»»å¡å®æå¼å¸¸,ä»»å¡å·:ã{taskNum}ã"); |
| | | ServiceLogger.WriteDebug("StackCraneTaskCompleted", $"ä»»å¡å®æå¼å¸¸,ä»»å¡å·:ã{taskNum}ã{ex.Message}"); |
| | | content = WebResponseContent.Instance.Error($"ä»»å¡å®æå¼å¸¸,ä»»å¡å·:ã{taskNum}ã{ex.Message}"); |
| | | } |
| | | return content; |
| | | } |