From e070b26178e324ea7afecccb4c5ff41f96d2dd8d Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期三, 26 三月 2025 18:25:16 +0800 Subject: [PATCH] 一些更改 --- Tiger.Business.WMS/ERP/WMS_U9C.cs | 23 ++++++++++++++--------- 1 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Tiger.Business.WMS/ERP/WMS_U9C.cs b/Tiger.Business.WMS/ERP/WMS_U9C.cs index 5e6ebce..812a6c9 100644 --- a/Tiger.Business.WMS/ERP/WMS_U9C.cs +++ b/Tiger.Business.WMS/ERP/WMS_U9C.cs @@ -155,11 +155,12 @@ var action = new ApiAction<List<U9CReturnData2>>(); try { - action = await SubmitLine(input); - if (action.IsSuccessed) { - input.IsLogin = false; - action = await ApproveLine(input); - } + //action = await SubmitLine(input); + //if (action.IsSuccessed) { + // input.IsLogin = false; + // action = await ApproveLine(input); + //} + action = await ApproveLine(input); } catch (System.Exception ex) { @@ -190,14 +191,16 @@ Logger.Interface.Info($"U9C鐧诲綍token: {input.token}"); } } - var response = await HttpHelper.PostAsync(SubmitLineUrl, JsonConvert.SerializeObject(input.param), new Dictionary<string, string>() { { "token", input.token } }); + var _params = new List<SubmitLineInputParam>(); + _params.Add(input.param); + var response = await HttpHelper.PostAsync(SubmitLineUrl, JsonConvert.SerializeObject(_params), new Dictionary<string, string>() { { "token", input.token } }); var result = JsonConvert.DeserializeObject<U9CResult2>(response.Message); if (result != null) { if (result.Success && result.Data[0].IsSucess) { action.Data = result.Data; - Logger.Interface.Info($"鏀惰揣鍗�-琛屾彁浜ゆ帴鍙f彁浜son: {JsonConvert.SerializeObject(input.param)}锛岃繑鍥濲son: {response.Message}"); + Logger.Interface.Info($"鏀惰揣鍗�-琛屾彁浜ゆ帴鍙f彁浜son: {JsonConvert.SerializeObject(_params)}锛岃繑鍥濲son: {response.Message}"); } else { @@ -236,14 +239,16 @@ Logger.Interface.Info($"U9C鐧诲綍token: {input.token}"); } } - var response = await HttpHelper.PostAsync(ApproveLineUrl, JsonConvert.SerializeObject(input.param), new Dictionary<string, string>() { { "token", input.token } }); + var _params = new List<SubmitLineInputParam>(); + _params.Add(input.param); + var response = await HttpHelper.PostAsync(ApproveLineUrl, JsonConvert.SerializeObject(_params), new Dictionary<string, string>() { { "token", input.token } }); var result = JsonConvert.DeserializeObject<U9CResult2>(response.Message); if (result != null) { if (result.Success && result.Data[0].IsSucess) { action.Data = result.Data; - Logger.Interface.Info($"鏀惰揣鍗�-琛屽鏍告帴鍙f彁浜son: {JsonConvert.SerializeObject(input.param)}锛岃繑鍥濲son: {response.Message}"); + Logger.Interface.Info($"鏀惰揣鍗�-琛屽鏍告帴鍙f彁浜son: {JsonConvert.SerializeObject(_params)}锛岃繑鍥濲son: {response.Message}"); } else { -- Gitblit v1.9.3