Commit eba90070 authored by 黄奎's avatar 黄奎

页面修改

parent a929f5af
......@@ -151,7 +151,7 @@ namespace TicketSpider.Spiders.ClassInRule
_loginCookies += item.Name + "=" + item.Value + ";";
}
_loginCookies = _loginCookies.Substring(0, _loginCookies.Length - 1);
if (!string.IsNullOrEmpty(_loginCookies)&&_loginCookies.Contains("sensorsdata2015jssdkcross")&&_loginCookies.Contains("_eeos_traffic"))
if (!string.IsNullOrEmpty(_loginCookies) && _loginCookies.Contains("sensorsdata2015jssdkcross") && _loginCookies.Contains("_eeos_traffic"))
{
flag = true;
break;
......@@ -175,9 +175,12 @@ namespace TicketSpider.Spiders.ClassInRule
VTX.FW.Helper.LogHelper.WriteInfo("RunAsync", $"获取cooki失败,{ex.Message}");
InfoHelper.WriteLine($"获取cooki失败,{ex.Message}");
}
driver.Close();
driver.Quit();
driver.Dispose();
finally
{
driver.Close();
driver.Quit();
driver.Dispose();
}
InfoHelper.WriteLine("完成登录...");
VTX.FW.Helper.LogHelper.WriteInfo("RunAsync", $"完成登录...");
return flag;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment