From 619c895bbdc18a3c802c93f341bc6c41722211ed Mon Sep 17 00:00:00 2001 From: Kananek Thongkam Date: Fri, 8 Sep 2023 09:40:23 +0700 Subject: [PATCH] fix: sometime cookie session use suffix as _v2 bug --- act/act.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/act/act.go b/act/act.go index a5c80ec..6978654 100644 --- a/act/act.go +++ b/act/act.go @@ -122,7 +122,7 @@ func (e *DailyHoyolab) SetCookie(rs []*http.Cookie) { func (e *DailyHoyolab) IsCookieLogin() bool { for _, jar := range e.CookieJar { - if jar.Name == "ltoken" { + if jar.Name == "ltoken" || jar.Name == "ltoken_v2" { return true } }