|
|
@ -25,7 +25,7 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
{ |
|
|
|
|
|
|
|
//ads Swiper
|
|
|
|
public HttpResponseMessage Banner(string requestUrl, string Lang) |
|
|
|
public HttpResponseMessage Banner(string Lang) |
|
|
|
{ |
|
|
|
//string sMsg = null;
|
|
|
|
SuccessResponseMessage srm = SugarBase.ExecTran(db => |
|
|
@ -46,6 +46,7 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
string requestUrl = Common.ConfigGetValue("", "ida:RedirectUri"); |
|
|
|
var saTheme = db.Queryable<SETB_SAP_Theme>() ////取得所有資料
|
|
|
|
.Where(x => x.Language == Lang) |
|
|
|
.ToList(); |
|
|
@ -75,7 +76,7 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
|
|
|
|
if (hasMatch && !FilePathTotal.Contains(image.Image)) { |
|
|
|
|
|
|
|
FilePathTotal.Add("http://" + requestUrl + "/" + FilePath.FilePath.Replace("\\", "/")); |
|
|
|
FilePathTotal.Add(requestUrl + "/" + FilePath.FilePath.Replace("\\", "/")); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -101,7 +102,7 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
/// <param name="OrgID"></param>
|
|
|
|
/// <param name="Lang"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
public HttpResponseMessage BaseInfo(string requestUrl,string Lang) |
|
|
|
public HttpResponseMessage BaseInfo(string Lang) |
|
|
|
{ |
|
|
|
SuccessResponseMessage srm = null; |
|
|
|
string sError = null; |
|
|
@ -115,6 +116,7 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
{ |
|
|
|
Lang = WebAppGlobalConstWord.DEFAULT_LANGUAGE; |
|
|
|
} |
|
|
|
string requestUrl = Common.ConfigGetValue("", "ida:RedirectUri"); |
|
|
|
var baseInfo = db.Queryable<SETB_SAP_BasicInfo>() |
|
|
|
//搜尋條件
|
|
|
|
.Where(x => x.OrgID == OrgID && x.Language == Lang) |
|
|
@ -126,7 +128,7 @@ namespace EasyBL.WEBAPP.SYS |
|
|
|
.First(); |
|
|
|
if (saFile != null) |
|
|
|
{ |
|
|
|
baseInfo.Image = "http://"+ requestUrl + "/" + saFile.FilePath.Replace("\\","/"); |
|
|
|
baseInfo.Image = requestUrl +"/"+ saFile.FilePath.Replace("\\","/"); |
|
|
|
} |
|
|
|
} |
|
|
|
srm = new SuccessResponseMessage(null, null); |
|
|
|