Commit f87b925c authored by 黄奎's avatar 黄奎

新增配置

parent d39623dd
...@@ -18,7 +18,8 @@ namespace TicketSpider.Spiders.ClassInRule ...@@ -18,7 +18,8 @@ namespace TicketSpider.Spiders.ClassInRule
if (string.IsNullOrEmpty(loginCookies)) if (string.IsNullOrEmpty(loginCookies))
{ {
ClassInAccountManager.ClearCookie(); 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; int ExpirTime = 60 * 60 * 12;
var cacheCookie = EduSpider.Cache.User.UserReidsCache.GetClassInCookie(key); var cacheCookie = EduSpider.Cache.User.UserReidsCache.GetClassInCookie(key);
if (cacheCookie != null && !string.IsNullOrEmpty(cacheCookie.CacheCookies.ToString())) if (cacheCookie != null && !string.IsNullOrEmpty(cacheCookie.CacheCookies.ToString()))
......
...@@ -15,5 +15,7 @@ ...@@ -15,5 +15,7 @@
"DefaultToken": "", "DefaultToken": "",
//(老账户 18140082327 ls123456) (新账号 18140082527 a123456 切换账号需要清楚Redis 3号库 ClassInCookie //(老账户 18140082327 ls123456) (新账号 18140082527 a123456 切换账号需要清楚Redis 3号库 ClassInCookie
"ClassInAccount": "18140082327", "ClassInAccount": "18140082327",
"ClassInPwd": "ls123456" "ClassInPwd": "ls123456",
//1-老账户,2-新账号
"ClassInType": "1"
} }
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