chengsc
2025-06-11 413194b8c6a71fea8cb7a567800b11703c6c7d5a
Admin.NET/WCS.Application/OpenApi/OpenApi.cs
@@ -3,6 +3,7 @@
using Furion.Logging;
using WCS.Application.Entity;
using WCS.Application.Util;
using static SKIT.FlurlHttpClient.Wechat.Api.Models.ComponentTCBBatchCreateContainerServiceVersionRequest.Types;
namespace WCS.Application;
@@ -428,7 +429,11 @@
            Code = "0"
        };
        if (input.robotTaskCode.Substring(0, 3) != "WCS" && input.robotTaskCode.Substring(0, 2) != "TK")
        {
            result.Message = "反馈的任务不是WCS的任务";
            result.Code = "1";
            return result;
        }
        PLCUtil modUtil = null;
        try
        {
@@ -532,6 +537,26 @@
                            }
                        }
                        break;
                    case "notifyFullSite":
                        {
                            var palletNo = input.Extra.Values.carrierCode;
                            var count = input.Extra.Values.pileCount;
                            if (string.IsNullOrWhiteSpace(palletNo) || count <= 0)
                            {
                                throw new Exception("参数:托盘号/数量验证失败");
                            }
                            //向WMS申请空托入库
                            HttpService httpService = new HttpService();
                            var inputs = new NullPallInRequest();
                            inputs.PalletNo = modTask.PalletNo;
                            inputs.PallNum = count;
                            inputs.Locate = "B100101";//叠托盘机位置
                            inputs.HouseNo = "W02";
                            var modResponseTask = httpService.RequestLiKuPallet(inputs);
                        }
                        break;
                    case "cancel"://任务取消
                        {
                            PLCService.AGVStatus = false;