支持更多手机版域名
This commit is contained in:
parent
a7fce532de
commit
417d33685f
@ -9,12 +9,14 @@ namespace 淘宝网址解析
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
Text += $"\t|当前程序路径>>{this.GetType().Assembly.Location}";
|
||||
}
|
||||
static Dictionary<string, string> 淘宝网站 = new Dictionary<string, string>
|
||||
{
|
||||
["淘宝网页版"] = "item.taobao.com",
|
||||
["淘宝手机版"] = "m.taobao.com",
|
||||
["淘宝手机版new"] = "new.m.taobao.com",
|
||||
["淘宝手机版main"] = "main.m.taobao.com",
|
||||
["淘宝短网址"] = "m.tb.cn",
|
||||
["天猫网址"] = "detail.tmall.com",
|
||||
["天猫超市"] = "chaoshi.detail.tmall.com",
|
||||
@ -60,7 +62,7 @@ namespace 淘宝网址解析
|
||||
temp = temp.Substring(textBox1.Text.IndexOf("http"));
|
||||
temp = temp.Split(' ')[0];
|
||||
}
|
||||
if (checkBox1.Checked) if (网页域名 == 淘宝网站["淘宝手机版new"] || 网页域名 == 淘宝网站["淘宝手机版"])
|
||||
if (checkBox1.Checked) if (网页域名.IndexOf(淘宝网站["淘宝手机版"])<0)
|
||||
{
|
||||
网页域名 = 淘宝网站["淘宝网页版"];
|
||||
网站页面 = @"item.htm";
|
||||
|
Loading…
Reference in New Issue
Block a user