fix: discuz is_logged_in

This commit is contained in:
Edward 2024-02-22 15:34:48 +08:00 committed by GitHub
parent 235af9e558
commit 9cb69f4879
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,8 @@ class SiteUtils:
' or contains(@onclick, "logout")'
' or contains(@href, "usercp")]',
'//form[contains(@action, "logout")]',
'//div[@class="user-info-side"]'
'//div[@class="user-info-side"]',
'//a[@id="myitem"]'
]
for xpath in xpaths:
if html.xpath(xpath):