From 61d106b9b016fbb6af0b746429006eabede77855 Mon Sep 17 00:00:00 2001 From: liangkun Date: Tue, 11 Apr 2023 12:15:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E8=BF=87=E9=A3=9E=E6=98=9F=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E5=A2=9E=E5=8A=A0=E6=97=A0DigitalschoolMisLoginurl?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/SSOSystemController.cs | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs index 4ccd5c509..3512898e7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs @@ -687,38 +687,74 @@ namespace Learun.Application.Web.Controllers var Returnurl = "http://" + Request.Url.Host + ":" + Request.Url.Port; if (!string.IsNullOrEmpty(n)) { + if (string.IsNullOrEmpty(DigitalschoolMisLoginurl)) + { + return Redirect("/Home/Index?autoopen=6252983c-52f5-402c-991b-ad19a9cb1f94&keyValue=" + n); + } return Redirect(DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + HttpUtility.UrlEncode(Returnurl + "/Home/Index?autoopen=6252983c-52f5-402c-991b-ad19a9cb1f94&keyValue=" + n)); } else if (!string.IsNullOrEmpty(mail)) { + if (string.IsNullOrEmpty(DigitalschoolMisLoginurl)) + { + return Redirect("/Home/Index?autoopen=252878d7-d807-497f-b01e-839bb1b869c6"); + } return Redirect(DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + HttpUtility.UrlEncode(Returnurl + "/Home/Index?autoopen=252878d7-d807-497f-b01e-839bb1b869c6")); } else if (!string.IsNullOrEmpty(sendfile)) { + if (string.IsNullOrEmpty(DigitalschoolMisLoginurl)) + { + return Redirect("/Home/Index?autoopen=19637c39-624d-4be6-b680-04250f8df71f"); + } return Redirect(DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + HttpUtility.UrlEncode(Returnurl + "/Home/Index?autoopen=19637c39-624d-4be6-b680-04250f8df71f")); } else if (!string.IsNullOrEmpty(task)) { + if (string.IsNullOrEmpty(DigitalschoolMisLoginurl)) + { + return Redirect("/Home/Index?autoopen=56ce34c2-882e-47d1-b12d-5036e3b79fcf"); + } return Redirect(DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + HttpUtility.UrlEncode(Returnurl + "/Home/Index?autoopen=56ce34c2-882e-47d1-b12d-5036e3b79fcf")); } else if (!string.IsNullOrEmpty(gotomain)) { + if (string.IsNullOrEmpty(DigitalschoolMisLoginurl)) + { + return Redirect("/Home/Index"); + } return Redirect(DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + HttpUtility.UrlEncode(Returnurl + "/Home/Index")); } else if (!string.IsNullOrEmpty(nk)) { + if (string.IsNullOrEmpty(DigitalschoolMisLoginurl)) + { + return Redirect("/Home/Index?autoopen=07ceccd0-cf74-42ec-9b7d-3b36af0be451"); + } return Redirect(DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + HttpUtility.UrlEncode(Returnurl + "/Home/Index?autoopen=07ceccd0-cf74-42ec-9b7d-3b36af0be451")); } else if (!string.IsNullOrEmpty(jx)) { + if (string.IsNullOrEmpty(DigitalschoolMisLoginurl)) + { + return Redirect("/Home/Index?autoopen=5f2e3e9b-b0da-421a-b370-671dcae4fc17"); + } return Redirect(DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + HttpUtility.UrlEncode(Returnurl + "/Home/Index?autoopen=5f2e3e9b-b0da-421a-b370-671dcae4fc17")); } else if (!string.IsNullOrEmpty(zl)) { + if (string.IsNullOrEmpty(DigitalschoolMisLoginurl)) + { + return Redirect("/Home/Index?autoopen=8dfd9f38-8cab-49ff-b4d1-8b899b1ecbca"); + } return Redirect(DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + HttpUtility.UrlEncode(Returnurl + "/Home/Index?autoopen=8dfd9f38-8cab-49ff-b4d1-8b899b1ecbca")); } else { + if (string.IsNullOrEmpty(DigitalschoolMisLoginurl)) + { + return Redirect("/SSOSystem/Index"); + } return Redirect(DigitalschoolMisLoginurl + "?F_Account=" + username + "&returnurl=" + Returnurl + "/SSOSystem/Index"); } }