From f9abb49c3c531de730c046be10384eecd31719a0 Mon Sep 17 00:00:00 2001 From: zhou keda <1315948824@qq.com> Date: Fri, 21 Jun 2024 10:17:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=B4=E6=A0=87=E5=96=B7=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs index 2dce7b7f..d64615d7 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs @@ -1462,9 +1462,15 @@ namespace Tnb.ProductionMgr ["TagName"] = workLineDic[item.workline_id], ["Value"] = basMbom.full_qty.ToString(), }; - await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand1); - await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand2); - await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand3); + Log.Information($"贴标写入参数:{JsonConvert.SerializeObject(dicCommand1)}"); + string result1 = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand1, false); + Log.Information($"贴标写入返回结果:{JsonConvert.SerializeObject(result1)}"); + Log.Information($"喷码写入参数:{JsonConvert.SerializeObject(dicCommand2)}"); + string result2 = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand2, false); + Log.Information($"喷码写入返回结果:{JsonConvert.SerializeObject(result2)}"); + Log.Information($"整托数写入参数:{JsonConvert.SerializeObject(dicCommand3)}"); + string result3 = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand3, false); + Log.Information($"整托数写入返回结果:{JsonConvert.SerializeObject(result3)}"); } } }