修复参数错误情况的崩溃
This commit is contained in:
parent
1f8ec73b0a
commit
a7fce532de
@ -73,7 +73,16 @@ namespace 淘宝网址解析
|
||||
foreach (var item in 参数)
|
||||
{
|
||||
var 参数与内容 = item.Split("=");
|
||||
try
|
||||
{
|
||||
参数列表.Add(new 网址参数 { 参数名称 = 参数与内容[0], 参数内容 = 参数与内容[1] });
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
Debug.WriteLine($"[Debug]{DateTime.Now}|解析参数错误{e}");
|
||||
}
|
||||
|
||||
if (参数与内容[0] == "id")
|
||||
{
|
||||
结果网址 += $"{参数与内容[0]}={参数与内容[1]}";
|
||||
|
Loading…
Reference in New Issue
Block a user