Commit 8eae73dd authored by 黄奎's avatar 黄奎

页面修改,新增账号配置

parent 58f8caa0
......@@ -123,17 +123,16 @@ namespace TicketSpider.Spiders.ClassInRule
});
if (inputEle != null && pwdEle != null)
{
inputEle.SendKeys("18140082527");
//a123456 校管家新密码
//ls123456 校管家老密码
pwdEle.SendKeys("a123456");
string classInAccount = VTX.FW.Helper.ConfigHelper.GetAppsettings("ClassInAccount");
string classInPwd = VTX.FW.Helper.ConfigHelper.GetAppsettings("ClassInPwd");
inputEle.SendKeys(classInAccount);
pwdEle.SendKeys(classInPwd);
}
}
catch (Exception ex)
{
InfoHelper.WriteLine("未知异常,程序退出");
VTX.FW.Helper.LogHelper.WriteInfo("RunAsync", $"未知异常,程序退出");
}
var buttonEle = driver.FindElement(By.CssSelector(".submit-btn"));
Thread.Sleep(1000);
......
......@@ -12,5 +12,8 @@
"RedisPwd": "Viitto2018"
},
//默认Token
"DefaultToken": ""
"DefaultToken": "",
//(老账户 18140082327 ls123456) (新账号 18140082527 a123456 切换账号需要清楚Redis 3号库 ClassInCookie
"ClassInAccount": "18140082327",
"ClassInPwd": "ls123456"
}
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