支持更多手机版域名

This commit is contained in:
优雅的母鸡 2023-03-11 00:38:26 +08:00
parent a7fce532de
commit 417d33685f

View File

@ -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";