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

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

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