From 0374ede40f01b27a1ffb69ee371839e391b4e31a Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Wed, 6 Nov 2024 13:14:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=81=E8=A3=85getPostCommon=20=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E5=AD=98=E5=82=A8=E8=BF=87=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tiobon.Core.Services/CommonServices.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Tiobon.Core.Services/CommonServices.cs b/Tiobon.Core.Services/CommonServices.cs index 2e6efa5c..10639ea8 100644 --- a/Tiobon.Core.Services/CommonServices.cs +++ b/Tiobon.Core.Services/CommonServices.cs @@ -2971,8 +2971,8 @@ public partial class CommonServices : BaseServices>, ICommon string _commonType = ""; // 类别 string userID = ""; bool hasUserIDPara = false; - string SqlCompanyKey = "SELECT CompanyKey from Ghro_company where IsEnable=1"; - DataTable dtCompanyKey = await Db.Ado.GetDataTableAsync(SqlCompanyKey); + string sqlCompanyKey = "SELECT CompanyKey FROM Ghro_company WHERE IsEnable=1"; + DataTable dtCompanyKey = await Db.Ado.GetDataTableAsync(sqlCompanyKey); string tokenKey = "Tiobon"; if (dtCompanyKey.Rows.Count > 0) tokenKey = dtCompanyKey.Rows[0][0].ToString(); @@ -3252,7 +3252,7 @@ public partial class CommonServices : BaseServices>, ICommon message = ErrorMsg; } } - Dictionary data = new Dictionary + var data = new Dictionary { {"result", JObject.Parse(strJson)}, {"message",message}, @@ -3269,7 +3269,7 @@ public partial class CommonServices : BaseServices>, ICommon } catch (Exception e) { - Dictionary data = new Dictionary + var data = new Dictionary { {"result", "{}"}, {"message",e.Message}, @@ -3278,10 +3278,6 @@ public partial class CommonServices : BaseServices>, ICommon }; return data; } - - //DataSet dt = await Db.Ado.UseStoredProcedure().GetDataSetAllAsync(param.procName, dic); - - //return dt; } }