mirror of
https://github.com/HChaZZY/NodeSeek-Signin.git
synced 2025-12-06 11:33:49 +08:00
fix: Prevent invalid value for days in get_signin_stats
This commit is contained in:
@@ -250,6 +250,9 @@ def get_signin_stats(ns_cookie, days=30):
|
||||
if not ns_cookie:
|
||||
return None, "无有效Cookie"
|
||||
|
||||
if days <= 0:
|
||||
days = 1
|
||||
|
||||
headers = {
|
||||
'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0",
|
||||
'origin': "https://www.nodeseek.com",
|
||||
|
||||
Reference in New Issue
Block a user