예제 #1
0
        /// <summary>
        /// 判断是否是自营商城
        /// </summary>
        /// <returns></returns>
        public static bool IsSelf()
        {
            //判断请求链接中是否含有self
            //string path = ReqHelper.req.Url.AbsolutePath.ToLower();
            //return path.Contains("self");
            string controller = ReqHelper.GetStringRoute("controller");

            return(controller.ToLower().Contains("self"));
        }
예제 #2
0
        //获取跳转链接
        public static string GetRecirectUrl()
        {
            string url = ReqHelper.GetString("redirecturl");

            if (string.IsNullOrEmpty(url))
            {
                url = Common.CookieHelper.GetCookieValue("redirecturl");
            }
            return(url);
        }