using System; using System.Collections.Generic; using System.Linq; using System.Text; using Bowin.Common.Utility; namespace EMISOnline.Utility { public class Const { public static List LOCAL_AUTH_EXCEPTURL { get { List lurl = new List(); lurl.Add("Content/"); lurl.Add("Doc/"); lurl.Add("bundles/"); lurl.Add("Scripts/"); lurl.Add("/UserVerify"); lurl.Add("/ForgotPassword"); lurl.Add("UploadFile/"); lurl.Add("/MsgShow"); lurl.Add("Account/ChangePassword"); return lurl; } } public static string LOCAL_SETTING_LOGIN_COOKIENAME { get { try { return System.Configuration.ConfigurationManager.AppSettings["logincookieName"]; } catch { return ""; } } } public static string USER_INIT_PASSWORD { get { return ("123456").MD5(); } } public static string LOCAL_SETTING_UPLOAD_FILEPATH { get { try { return System.Configuration.ConfigurationManager.AppSettings["FileUploadPath"]; } catch { return ""; } } } public static bool SSO_IS_SSO_LOGIN { get { try { return System.Configuration.ConfigurationManager.AppSettings["IsSSOLogin"] == "1"; } catch (Exception ex) { return false; } } } public static string SSO_HOST { get { try { var ssoHost = System.Configuration.ConfigurationManager.AppSettings["SSOHost"]; if (!ssoHost.EndsWith("/")) { ssoHost += "/"; } return ssoHost; } catch (Exception ex) { throw new Exception("单点登录配置错误。"); } } } } }