public static string GetVirName() { string VirName = WebUtil.getApplicationPath(); if (string.IsNullOrEmpty(VirName)) { VirName = "saas"; } else if (VirName.StartsWith("/")) { VirName = VirName.Substring(1, VirName.Length - 1); } return(VirName); }
public static string GetWechatTemplatePath(string xmlpath) { string application_path = WebUtil.getApplicationPath().ToLower(); if (!string.IsNullOrEmpty(application_path)) { if (!xmlpath.ToLower().StartsWith(application_path)) { xmlpath = application_path + xmlpath; } } string FullPath = HttpContext.Current.Server.MapPath(xmlpath); //LogHelper.WriteDebug("XMLFullPath", FullPath); if (!System.IO.File.Exists(FullPath)) { return(""); } return(xmlpath); }
public static string GetHasRoomPrefix() { string CookieKey = WebUtil.getApplicationPath(); return(string.IsNullOrEmpty(CookieKey) ? "hasroom" : CookieKey + "_hasroom"); }
public static string GetOpenIDPrefix() { string CookieKey = WebUtil.getApplicationPath(); return(string.IsNullOrEmpty(CookieKey) ? "openid" : CookieKey + "_openid"); }