Ejemplo n.º 1
0
        public string Convert(string remote)
        {
            if (remote.IsEmpty())
            {
                return(remote);
            }
            string url = DetachParams(remote);

            if (!Cdn.Path.IsEmpty() && url.StartsWith(Cdn.Path))
            {
                return(url.Replace(Cdn.Path, cdnLocalDir));
            }
            else
            {
                return(PathUtil.Combine(cdnLocalDir, pathEncoder.Replace(url)));
            }
        }