From 495aafaa4bd15ce10fb3152c6a029148258f8ecb Mon Sep 17 00:00:00 2001 From: berlin-tzen Date: Thu, 2 Feb 2023 17:22:36 +0800 Subject: [PATCH] =?UTF-8?q?[WHAT]=20Bugfix=20=E6=9C=83=E5=93=A1=E5=85=AC?= =?UTF-8?q?=E5=8F=B8=E6=9F=A5=E8=A9=A2API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EuroTran/EasyBL.WEBAPP/ShowEasy/CompanyService.cs | 4 ++-- EuroTran/Entity/Entity.csproj | 1 + EuroTran/WebApp/Controllers/MembersController.cs | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/EuroTran/EasyBL.WEBAPP/ShowEasy/CompanyService.cs b/EuroTran/EasyBL.WEBAPP/ShowEasy/CompanyService.cs index 0c2987c..e992522 100644 --- a/EuroTran/EasyBL.WEBAPP/ShowEasy/CompanyService.cs +++ b/EuroTran/EasyBL.WEBAPP/ShowEasy/CompanyService.cs @@ -65,7 +65,7 @@ namespace EasyBL.WEBAPP.SYS /// /// /// - public HttpResponseMessage GetCompanies(string sAccount) + public HttpResponseMessage GetCompanies(string sAccount, string sLanguageID) { SuccessResponseMessage srm = null; @@ -77,7 +77,7 @@ namespace EasyBL.WEBAPP.SYS { CompanyMaintain_QryService cm_qry = new CompanyMaintain_QryService(); - var rsResult = cm_qry.QueryCompanyList(sAccount); + var rsResult = cm_qry.QueryCompanyList(sAccount, sLanguageID); //返回token信息 srm = new SuccessResponseMessage(null, null); diff --git a/EuroTran/Entity/Entity.csproj b/EuroTran/Entity/Entity.csproj index e0e2993..bfa4aef 100644 --- a/EuroTran/Entity/Entity.csproj +++ b/EuroTran/Entity/Entity.csproj @@ -203,6 +203,7 @@ + diff --git a/EuroTran/WebApp/Controllers/MembersController.cs b/EuroTran/WebApp/Controllers/MembersController.cs index a2cff40..c574c5c 100644 --- a/EuroTran/WebApp/Controllers/MembersController.cs +++ b/EuroTran/WebApp/Controllers/MembersController.cs @@ -123,11 +123,11 @@ namespace WebApp.Controllers [HttpGet] [SEApiSecurityFilter] - public HttpResponseMessage Companies() + public HttpResponseMessage Companies(string Lang) { var SEToken = SETokenUtil.GetToken(this.Request); - return new CompanyService().GetCompanies(SEToken.Account); + return new CompanyService().GetCompanies(SEToken.Account, Lang); }