From 4fbc4b8db0b03e9ab805d71096f812474792f68c Mon Sep 17 00:00:00 2001 From: dev01 Date: Mon, 22 Jan 2024 18:22:06 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=B7=8A=E6=80=A5=E6=87=89=E8=AE=8A]=20?= =?UTF-8?q?=E5=8F=B3=E4=B8=8A=E8=A7=92=E9=BD=92=E8=BC=AA=20url=20=E5=8B=95?= =?UTF-8?q?=E6=85=8B=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontendWebApi/Controllers/MyBaseController.cs | 5 ++++- FrontendWebApi/Views/Shared/_Layout.cshtml | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) 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'); - - }