From 2801349ddf66d806643bcca9143e3c6183f05b17 Mon Sep 17 00:00:00 2001 From: Yang <903110162@qq.com> Date: Mon, 19 Jun 2023 11:50:52 +0800 Subject: [PATCH] =?UTF-8?q?=EF=BD=83=EF=BD=8F=EF=BD=8D=EF=BD=8D=EF=BD=89?= =?UTF-8?q?=E3=80=80=EF=BD=82=EF=BD=99=E3=80=80=EF=BD=99=EF=BD=9A=EF=BD=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/HalfMaterialTeamworkController.cs | 2 +- FactorySystemApi/Controllers/TeamworkController.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/FactorySystemApi/Controllers/HalfMaterialTeamworkController.cs b/FactorySystemApi/Controllers/HalfMaterialTeamworkController.cs index c347a8b..2ba1f35 100644 --- a/FactorySystemApi/Controllers/HalfMaterialTeamworkController.cs +++ b/FactorySystemApi/Controllers/HalfMaterialTeamworkController.cs @@ -187,7 +187,7 @@ namespace FactorySystemApi.Controllers return ExceptionHelper.TryReturnException(() => { //对接获取 - //inParam.Add("FMdmCode", GetMdmCode(inParam)); + inParam.Add("FMdmCode", GetMdmCode(inParam)); //var ts = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0); //inParam.Add("FMdmCode", ts.TotalSeconds.ToString("F0")); try diff --git a/FactorySystemApi/Controllers/TeamworkController.cs b/FactorySystemApi/Controllers/TeamworkController.cs index fe99a2b..1edc44c 100644 --- a/FactorySystemApi/Controllers/TeamworkController.cs +++ b/FactorySystemApi/Controllers/TeamworkController.cs @@ -77,9 +77,9 @@ namespace FactorySystemApi.Controllers return ExceptionHelper.TryReturnException(() => { //对接获取 - //inParam.Add("FMdmCode", GetMdmCode(inParam)); - var ts = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0); - inParam.Add("FMdmCode", ts.TotalSeconds.ToString("F0")); + inParam.Add("FMdmCode", GetMdmCode(inParam)); + //var ts = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0); + //inParam.Add("FMdmCode", ts.TotalSeconds.ToString("F0")); if (!inParam.ContainsKey("FMdmCode") || string.IsNullOrEmpty(inParam["FMdmCode"].ToString().Trim())) { apiResult.Error("获取MDM失败");