|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/794bf435/a236a820/ |
?#pragma checksum "d:\wwwroot\sznzpj\wwwroot\App_Code\UrlString.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "18DD9E3AB0AB6E8D34FEC0189150B018"
#line 1 "d:\wwwroot\sznzpj\wwwroot\App_Code\UrlString.cs"
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text.RegularExpressions;
/// <summary>
///UrlString 的提要注明
/// </summary>
public class UrlString
{
public UrlString()
{
//
//TODO: 在此处增长机关函数逻辑
//
}
public static string GetUrl(string Url)
{
string tzm = StringHelper.ExtensionString;
string urlStr = Url;
//后盾
string pattern = string.Format(@"/qiao/");
if (Regex.IsMatch(Url, pattern, RegexOptions.IgnoreCase | RegexOptions.Compiled))
return urlStr;
//关于918博天堂
pattern = string.Format(@"About(-*)(\d*)" + tzm + "$");
if (Regex.IsMatch(Url, pattern, RegexOptions.IgnoreCase | RegexOptions.Compiled))
urlStr = Regex.Replace(Url, pattern, "About.aspx?Id=$2", RegexOptions.IgnoreCase | RegexOptions.Compiled);
//新闻中心
pattern = string.Format(@"News(\d*)(_*)(\d*)" + tzm + "$");
if (Regex.IsMatch(Url, pattern, RegexOptions.IgnoreCase | RegexOptions.Compiled))
urlStr = Regex.Replace(Url, pattern, "News.aspx?page=$1&CID=$3", RegexOptions.IgnoreCase | RegexOptions.Compiled);
//新闻中心
pattern = string.Format(@"News-(\d+)" + tzm + "$");
if (Regex.IsMatch(Url, pattern, RegexOptions.IgnoreCase | RegexOptions.Compiled))
urlStr = Regex.Replace(Url, pattern, "News.aspx?Id=$1", RegexOptions.IgnoreCase | RegexOptions.Compiled);
//关于918博天堂
pattern = string.Format(@"yw(-*)(\d*)" + tzm + "$");
if (Regex.IsMatch(Url, pattern, RegexOptions.IgnoreCase | RegexOptions.Compiled))
urlStr = Regex.Replace(Url, pattern, "yw.aspx?Id=$2", RegexOptions.IgnoreCase | RegexOptions.Compiled);
//驾驶学问
pattern = string.Format(@"jscs(\d*)(_*)(\d*)" + tzm + "$");
if (Regex.IsMatch(Url, pattern, RegexOptions.IgnoreCase | RegexOptions.Compiled))
urlStr = Regex.Replace(Url, pattern, "jscs.aspx?page=$1&CID=$3", RegexOptions.IgnoreCase | RegexOptions.Compiled);
//驾驶学问
pattern = string.Format(@"jscs-(\d+)" + tzm + "$");
if (Regex.IsMatch(Url, pattern, RegexOptions.IgnoreCase | RegexOptions.Compiled))
urlStr = Regex.Replace(Url, pattern, "jscs.aspx?Id=$1", RegexOptions.IgnoreCase | RegexOptions.Compiled);
return urlStr;
}
}
#line default
#line hidden