Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public static string GetHasRoomPrefix()
        {
            string CookieKey = WebUtil.getApplicationPath();

            return(string.IsNullOrEmpty(CookieKey) ? "hasroom" : CookieKey + "_hasroom");
        }
Ejemplo n.º 4
0
        public static string GetOpenIDPrefix()
        {
            string CookieKey = WebUtil.getApplicationPath();

            return(string.IsNullOrEmpty(CookieKey) ? "openid" : CookieKey + "_openid");
        }