Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
EduSpider
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
EduSpider
Commits
8eae73dd
Commit
8eae73dd
authored
Nov 30, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改,新增账号配置
parent
58f8caa0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
ClassInAccountManager.cs
EduSpider/Spiders/ClassInRule/ClassInAccountManager.cs
+4
-5
appsettings.json
EduSpider/appsettings.json
+4
-1
No files found.
EduSpider/Spiders/ClassInRule/ClassInAccountManager.cs
View file @
8eae73dd
...
...
@@ -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
);
...
...
EduSpider/appsettings.json
View file @
8eae73dd
...
...
@@ -12,5 +12,8 @@
"RedisPwd"
:
"Viitto2018"
},
//默认Token
"DefaultToken"
:
""
"DefaultToken"
:
""
,
//(老账户
18140082327
ls
123456
)
(新账号
18140082527
a
123456
)
切换账号需要清楚Redis
3
号库
ClassInCookie
"ClassInAccount"
:
"18140082327"
,
"ClassInPwd"
:
"ls123456"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment