diff --git a/FrontendWebApi/Controllers/MyBaseController.cs b/FrontendWebApi/Controllers/MyBaseController.cs index e48ba23..098560a 100644 --- a/FrontendWebApi/Controllers/MyBaseController.cs +++ b/FrontendWebApi/Controllers/MyBaseController.cs @@ -80,10 +80,13 @@ namespace FrontendWebApi.Controllers left join role_auth ra on ra.role_guid = us.role_guid left join auth_page ap on ap.AuthCode = ra.AuthCode where us.userinfo_guid = '{myUserInfo.Userinfo_guid}'"); + var sGetBackendUrlSql = @"SELECT system_value FROM variable WHERE system_type = 'website_config' AND system_key = 'website_url'"; + var sBackendUrl = frontendRepository.GetOneAsync(sGetBackendUrlSql)?.Result; + myUserInfo.ShowView = showview.Result; ViewBag.myUserInfo = myUserInfo; ViewBag.role = showview.Result; - + ViewBag.BackendUrl = sBackendUrl; //var showviewt = new List() // { diff --git a/FrontendWebApi/Views/Shared/_Layout.cshtml b/FrontendWebApi/Views/Shared/_Layout.cshtml index 5cbeda5..b0e024e 100644 --- a/FrontendWebApi/Views/Shared/_Layout.cshtml +++ b/FrontendWebApi/Views/Shared/_Layout.cshtml @@ -607,7 +607,7 @@
- + @* Dr. Codex Lantern @@ -1062,8 +1062,6 @@ } }, 'json'); - - }