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
f87b925c
Commit
f87b925c
authored
Dec 08, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增配置
parent
d39623dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
ClassInFlow.cs
EduSpider/Spiders/ClassInRule/ClassInFlow.cs
+2
-1
appsettings.json
EduSpider/appsettings.json
+3
-1
No files found.
EduSpider/Spiders/ClassInRule/ClassInFlow.cs
View file @
f87b925c
...
...
@@ -18,7 +18,8 @@ namespace TicketSpider.Spiders.ClassInRule
if
(
string
.
IsNullOrEmpty
(
loginCookies
))
{
ClassInAccountManager
.
ClearCookie
();
string
key
=
EduSpider
.
Cache
.
CacheKey
.
ClassIn_Cookie_Key
;
var
KeyTypeStr
=
VTX
.
FW
.
Helper
.
ConfigHelper
.
GetAppsettings
(
"ClassInType"
);
string
key
=
EduSpider
.
Cache
.
CacheKey
.
ClassIn_Cookie_Key
+
"_"
+
KeyTypeStr
;
int
ExpirTime
=
60
*
60
*
12
;
var
cacheCookie
=
EduSpider
.
Cache
.
User
.
UserReidsCache
.
GetClassInCookie
(
key
);
if
(
cacheCookie
!=
null
&&
!
string
.
IsNullOrEmpty
(
cacheCookie
.
CacheCookies
.
ToString
()))
...
...
EduSpider/appsettings.json
View file @
f87b925c
...
...
@@ -15,5 +15,7 @@
"DefaultToken"
:
""
,
//(老账户
18140082327
ls
123456
)
(新账号
18140082527
a
123456
)
切换账号需要清楚Redis
3
号库
ClassInCookie
"ClassInAccount"
:
"18140082327"
,
"ClassInPwd"
:
"ls123456"
"ClassInPwd"
:
"ls123456"
,
//
1
-老账户,
2
-新账号
"ClassInType"
:
"1"
}
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