liudl
2025-03-13 b71144811c970ddb7296f5243f722ec6b00cf805
Admin.NET/WCS.Application/Util/HttpService.cs
@@ -359,8 +359,6 @@
    /// <returns></returns>
    public string BindPlnInHouseWcs(string Qty, string palletNo)
    {
        string returnStr = "";
        var model = new BindPalletModel()
        {
            BindType = "1",//申请类型
@@ -368,19 +366,10 @@
            PalletNo = palletNo,//托盘号
        };
        string url = Urls.WMSAddress + ":" + Urls.WMSPort;
        var result = (url + "/api/DownAPi/BindPlnInHouseWcs").SetBody(model, "application/json", Encoding.UTF8).PostAsAsync<ResponseOutPallet>().Result;
        var result = (url + "/api/DownAPi/BindPlnInHouseWcs").SetBody(model, "application/json", Encoding.UTF8).PostAsAsync<IsBaleModel2>().Result;
        Log.Information("调用WMS接口反馈任务接口" + result.ToJson());
        if (result.Success == 0)
        {
            returnStr = result.TaskList.ToString();
        }
        else
        {
            returnStr = "-1:" + result.Message;
            return returnStr;
        }
        return returnStr;
        return result.Success.ToString();
    }
    /// <summary>
@@ -485,9 +474,11 @@
        string url = Urls.WMSAddress + ":" + Urls.WMSPort;
        var str = new
        {
            BoxNo = boxNo
            BoxNo = boxNo,
            PalletNo = "",
            TaskNo = ""
        };
        var result = (url + "/api/DownAPi/ResultBoxInfoCheckWcs").SetBody(str, "application/json", Encoding.UTF8).PostAsAsync<RequestloadingAddre>().Result;
        var result = (url + "/api/DownAPi/ResultBoxInfoExportWcs").SetBody(str, "application/json", Encoding.UTF8).PostAsAsync<RequestloadingAddre>().Result;
        Log.Information("调用WMS接口验证箱码是否可拣货并返回装车口:" + result.ToJson());
        return result;